mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
Show content like box if not draft document
This commit is contained in:
parent
22b6674edb
commit
94ca80f052
3 changed files with 27 additions and 32 deletions
|
@ -45,6 +45,11 @@ export default Model.extend({
|
|||
return this.get('lifecycle') == constants.Lifecycle.Draft;
|
||||
}),
|
||||
|
||||
isLive: computed('lifecycle', function () {
|
||||
let constants = this.get('constants');
|
||||
return this.get('lifecycle') == constants.Lifecycle.Live;
|
||||
}),
|
||||
|
||||
lifecycleLabel: computed('lifecycle', function () {
|
||||
let constants = this.get('constants');
|
||||
switch (this.get('lifecycle')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue