e4d2b52748
This way ED doesn't eagerly fetch the job summary even when it's already in the store due to the jobs list endpoint
13 lines
333 B
JavaScript
13 lines
333 B
JavaScript
import Watchable from './watchable';
|
|
|
|
export default Watchable.extend({
|
|
urlForFindRecord(id, type, hash) {
|
|
const [name, namespace] = JSON.parse(id);
|
|
let url = this._super(name, 'job', hash) + '/summary';
|
|
if (namespace && namespace !== 'default') {
|
|
url += `?namespace=${namespace}`;
|
|
}
|
|
return url;
|
|
},
|
|
});
|