27 lines
631 B
JavaScript
27 lines
631 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import { equal } from '@ember/object/computed';
|
|
import Component from '@ember/component';
|
|
import { classNames, classNameBindings } from '@ember-decorators/component';
|
|
import classic from 'ember-classic-decorator';
|
|
|
|
@classic
|
|
@classNames('job-diff')
|
|
@classNameBindings(
|
|
'isEdited:is-edited',
|
|
'isAdded:is-added',
|
|
'isDeleted:is-deleted'
|
|
)
|
|
export default class JobDiff extends Component {
|
|
diff = null;
|
|
|
|
verbose = true;
|
|
|
|
@equal('diff.Type', 'Edited') isEdited;
|
|
@equal('diff.Type', 'Added') isAdded;
|
|
@equal('diff.Type', 'Deleted') isDeleted;
|
|
}
|