1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

document approvals and protection

This commit is contained in:
Harvey Kandola 2017-12-24 15:51:43 +00:00
parent 58c88e2127
commit f4f32bcfcb
20 changed files with 891 additions and 777 deletions

View file

@ -10,9 +10,7 @@
// https://documize.com
import { htmlSafe } from '@ember/string';
import EmberObject, { computed } from '@ember/object';
import Ember from 'ember';
import stringUtil from '../utils/string';
import constants from '../utils/constants';
@ -98,6 +96,8 @@ let DocumentModel = BaseModel.extend({
userId: "",
tags: "",
template: "",
protection: constants.ProtectionType.None,
approval: constants.ApprovalType.None,
slug: computed('name', function () {
return stringUtil.makeSlug(this.get('name'));
@ -164,6 +164,8 @@ let PageModel = BaseModel.extend({
title: "",
body: "",
rawBody: "",
protection: constants.ProtectionType.None,
approval: constants.ApprovalType.None,
meta: {},
tagName: computed('level', function () {
@ -202,7 +204,6 @@ let SectionModel = BaseModel.extend({
});
export default {
TemplateModel,
AttachmentModel,
DocumentModel,
FolderModel,
@ -210,6 +211,7 @@ export default {
PageModel,
PageMetaModel,
ProtectedFolderParticipant,
UserModel,
SectionModel
SectionModel,
TemplateModel,
UserModel
};