github.com/emate/nomad@v0.8.2-wo-binpacking/ui/app/components/job-page/parts/title.js (about)

     1  import Component from '@ember/component';
     2  
     3  export default Component.extend({
     4    tagName: '',
     5  
     6    job: null,
     7    title: null,
     8  
     9    handleError() {},
    10  
    11    actions: {
    12      stopJob() {
    13        this.get('job')
    14          .stop()
    15          .catch(() => {
    16            this.get('handleError')({
    17              title: 'Could Not Stop Job',
    18              description: 'Your ACL token does not grant permission to stop jobs.',
    19            });
    20          });
    21      },
    22    },
    23  });