2017-12-15 21:39:18 +00:00
|
|
|
import { equal } from '@ember/object/computed';
|
|
|
|
import Component from '@ember/component';
|
2020-06-10 13:49:16 +00:00
|
|
|
import { classNames, classNameBindings } from '@ember-decorators/component';
|
|
|
|
import classic from 'ember-classic-decorator';
|
2017-09-19 14:47:10 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@classic
|
|
|
|
@classNames('job-diff')
|
|
|
|
@classNameBindings('isEdited:is-edited', 'isAdded:is-added', 'isDeleted:is-deleted')
|
|
|
|
export default class JobDiff extends Component {
|
|
|
|
diff = null;
|
2017-09-19 14:47:10 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
verbose = true;
|
2017-09-19 14:47:10 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@equal('diff.Type', 'Edited') isEdited;
|
|
|
|
@equal('diff.Type', 'Added') isAdded;
|
|
|
|
@equal('diff.Type', 'Deleted') isDeleted;
|
|
|
|
}
|