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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
631 B
JavaScript
Raw Normal View History

/**
* 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';
2017-09-19 14:47:10 +00:00
@classic
@classNames('job-diff')
2021-12-28 16:08:12 +00:00
@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
verbose = true;
2017-09-19 14:47:10 +00:00
@equal('diff.Type', 'Edited') isEdited;
@equal('diff.Type', 'Added') isAdded;
@equal('diff.Type', 'Deleted') isDeleted;
}