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

16 lines
406 B
JavaScript
Raw Normal View History

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