Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
e8bbd0fb
Commit
e8bbd0fb
authored
6 years ago
by
Michael Lange
Browse files
Options
Download
Email Patches
Plain Diff
Refactor the job xhrKey to use super
parent
f160f70f
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui/app/adapters/job.js
+3
-2
ui/app/adapters/job.js
with
3 additions
and
2 deletions
+3
-2
ui/app/adapters/job.js
+
3
-
2
View file @
e8bbd0fb
...
...
@@ -47,11 +47,12 @@ export default Watchable.extend({
},
xhrKey
(
url
,
method
,
options
=
{})
{
const
plainKey
=
this
.
_super
(...
arguments
);
const
namespace
=
options
.
data
&&
options
.
data
.
namespace
;
if
(
namespace
)
{
return
`
${
method
}
${
url
}
?namespace=
${
namespace
}
`
;
return
`
${
plainKey
}
?namespace=
${
namespace
}
`
;
}
return
`
${
method
}
${
url
}
`
;
return
plainKey
;
},
relationshipFallbackLinks
:
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help