2017-12-15 21:39:18 +00:00
|
|
|
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,
|
|
|
|
|
2017-12-15 21:39:18 +00:00
|
|
|
isEdited: equal('diff.Type', 'Edited'),
|
|
|
|
isAdded: equal('diff.Type', 'Added'),
|
|
|
|
isDeleted: equal('diff.Type', 'Deleted'),
|
2017-09-19 14:47:10 +00:00
|
|
|
});
|