parent
fb465e4704
commit
9099ab47c4
@ -1,10 +1,17 @@
|
||||
import DraggableObject from 'ember-drag-drop/components/draggable-object';
|
||||
import classic from 'ember-classic-decorator';
|
||||
import {alias} from '@ember/object/computed';
|
||||
import {attributeBindings, classNames} from '@ember-decorators/component';
|
||||
import {computed} from '@ember/object';
|
||||
|
||||
@classic
|
||||
@attributeBindings('title')
|
||||
@classNames('label-token')
|
||||
export default class LabelToken extends DraggableObject {
|
||||
title = this.name ?? 'Label';
|
||||
@alias('content.name') name;
|
||||
|
||||
@computed('name')
|
||||
get title() {
|
||||
return this.name ?? 'Label';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user