mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-15 03:01:37 -05:00
parent
fb465e4704
commit
9099ab47c4
1 changed files with 8 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue