2018-02-25 20:34:38 -08:00
|
|
|
import Component from '@ember/component';
|
2018-05-17 23:46:03 -07:00
|
|
|
import { set } from '@ember/object';
|
|
|
|
import { action } from '@ember-decorators/object';
|
2018-02-25 20:34:38 -08:00
|
|
|
|
2018-05-15 13:13:37 -07:00
|
|
|
export default class UpstreamDataset extends Component {
|
2018-02-25 20:34:38 -08:00
|
|
|
tagName = 'section';
|
|
|
|
|
2018-05-18 15:15:43 -07:00
|
|
|
classNames = ['upstream-downstream-retention'];
|
2018-05-17 23:46:03 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Flag indicating the component is in view only mode and not editable
|
|
|
|
* @type {boolean}
|
|
|
|
* @memberof UpstreamDataset
|
|
|
|
*/
|
|
|
|
isReadOnly: boolean = true;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Action handler to set component in edit mode
|
|
|
|
* @memberof UpstreamDataset
|
|
|
|
*/
|
|
|
|
@action
|
|
|
|
onEdit() {
|
|
|
|
set(this, 'isReadOnly', false);
|
|
|
|
}
|
2018-02-25 20:34:38 -08:00
|
|
|
}
|