1
0
Fork 0
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:
McMatts 2018-04-17 16:09:28 +01:00
parent 22b6674edb
commit 94ca80f052
3 changed files with 27 additions and 32 deletions

View file

@ -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')) {