open-nomad/ui/app/components/job-diff.js
2018-01-17 09:02:04 -08:00

16 lines
406 B
JavaScript

import { equal } from '@ember/object/computed';
import Component from '@ember/component';
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'),
});