cd11cd290c
I don’t know why the codemod ignored these files 🧐
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;
|
|
}
|
|
}
|