2018-03-20 19:35:32 +00:00
|
|
|
import Watchable from './watchable';
|
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
export default class JobSummary extends Watchable {
|
2018-03-20 19:35:32 +00:00
|
|
|
urlForFindRecord(id, type, hash) {
|
|
|
|
const [name, namespace] = JSON.parse(id);
|
2020-06-10 13:49:16 +00:00
|
|
|
let url = super.urlForFindRecord(name, 'job', hash) + '/summary';
|
2018-03-20 19:35:32 +00:00
|
|
|
if (namespace && namespace !== 'default') {
|
|
|
|
url += `?namespace=${namespace}`;
|
|
|
|
}
|
|
|
|
return url;
|
2020-06-10 13:49:16 +00:00
|
|
|
}
|
|
|
|
}
|