BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
aa1d87bd
Unverified
Commit
aa1d87bd
authored
May 22, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix helper methods returning wrong data types for vue
parent
d537a9a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
editable_helper.rb
app/helpers/editable_helper.rb
+1
-1
issuables_helper.rb
app/helpers/issuables_helper.rb
+6
-2
No files found.
app/helpers/editable_helper.rb
View file @
aa1d87bd
module
EditableHelper
def
updated_at_by
(
editable
)
return
nil
unless
editable
.
is_edited?
return
{}
unless
editable
.
is_edited?
{
updated_at:
editable
.
updated_at
,
...
...
app/helpers/issuables_helper.rb
View file @
aa1d87bd
...
...
@@ -276,9 +276,13 @@ module IssuablesHelper
end
def
issuable_app_data
(
project
,
issue
)
data
=
{
"endpoint"
=>
realtime_changes_namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
),
"can-update"
=>
can?
(
current_user
,
:update_issue
,
issue
).
to_s
,
"issuable-ref"
=>
issue
.
to_reference
}
data
=
{
endpoint:
realtime_changes_namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
),
'can-update'
=>
can?
(
current_user
,
:update_issue
,
issue
).
to_s
,
'issuable-ref'
=>
issue
.
to_reference
||
''
}
updated_at_by
=
updated_at_by
(
issue
)
data
.
merge
(
updated_at_by
)
if
updated_at_by
.
present?
data
.
merge
(
updated_at_by
)
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment