Skip to content

Commit

Permalink
Refactor the job xhrKey to use super
Browse files Browse the repository at this point in the history
  • Loading branch information
DingoEatingFuzz committed May 25, 2018
1 parent f160f70 commit e8bbd0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/app/adapters/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit e8bbd0f

Please sign in to comment.