mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
9099ab47c4
ref DES-205
18 lines
525 B
JavaScript
18 lines
525 B
JavaScript
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 {
|
|
@alias('content.name') name;
|
|
|
|
@computed('name')
|
|
get title() {
|
|
return this.name ?? 'Label';
|
|
}
|
|
}
|