open-nomad/ui/app/components/job-diff.js
Alex Dadgar e5ec915ac3 sync
2017-09-19 10:08:23 -05:00

17 lines
410 B
JavaScript

import Ember from 'ember';
const { Component, computed } = Ember;
export default Component.extend({
classNames: ['job-diff'],
classNameBindings: ['isEdited:is-edited', 'isAdded:is-added', 'isDeleted:is-deleted'],
diff: null,
verbose: true,
isEdited: computed.equal('diff.Type', 'Edited'),
isAdded: computed.equal('diff.Type', 'Added'),
isDeleted: computed.equal('diff.Type', 'Deleted'),
});