open-nomad/ui/app/components/job-page/parts/title.js
2018-04-19 14:22:04 -07:00

24 lines
435 B
JavaScript

import Component from '@ember/component';
export default Component.extend({
tagName: '',
job: null,
title: null,
handleError() {},
actions: {
stopJob() {
this.get('job')
.stop()
.catch(() => {
this.get('handleError')({
title: 'Could Not Stop Job',
description: 'Your ACL token does not grant permission to stop jobs.',
});
});
},
},
});