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

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'),
});