13 lines
366 B
JavaScript
13 lines
366 B
JavaScript
import Watchable from './watchable';
|
|
|
|
export default class JobSummaryAdapter extends Watchable {
|
|
urlForFindRecord(id, type, hash) {
|
|
const [name, namespace] = JSON.parse(id);
|
|
let url = super.urlForFindRecord(name, 'job', hash) + '/summary';
|
|
if (namespace && namespace !== 'default') {
|
|
url += `?namespace=${namespace}`;
|
|
}
|
|
return url;
|
|
}
|
|
}
|