open-nomad/ui/app/components/job-diff.js

18 lines
545 B
JavaScript
Raw Normal View History

import { equal } from '@ember/object/computed';
import Component from '@ember/component';
import { classNames, classNameBindings } from '@ember-decorators/component';
import classic from 'ember-classic-decorator';
2017-09-19 14:47:10 +00:00
@classic
@classNames('job-diff')
@classNameBindings('isEdited:is-edited', 'isAdded:is-added', 'isDeleted:is-deleted')
export default class JobDiff extends Component {
diff = null;
2017-09-19 14:47:10 +00:00
verbose = true;
2017-09-19 14:47:10 +00:00
@equal('diff.Type', 'Edited') isEdited;
@equal('diff.Type', 'Added') isAdded;
@equal('diff.Type', 'Deleted') isDeleted;
}