1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 14:49:42 +02:00

Streamline document meta view and editing experience

Meta data:

1. Condensed layout.
2. Unified editing.

Co-Authored-By: Saul S <sauls8t@users.noreply.github.com>
This commit is contained in:
McMatts 2018-06-15 14:25:05 +01:00
parent f70d4b33a3
commit 27fde0dac8
26 changed files with 2389 additions and 1956 deletions

View file

@ -33,7 +33,6 @@ export default Component.extend(TooltipMixin, Notifier, {
}),
voteThanks: false,
showLikes: false,
showDeleteBlockDialog: false,
deleteBlockId: '',
@ -107,6 +106,16 @@ export default Component.extend(TooltipMixin, Notifier, {
}
},
addSection(model) {
let constants = this.get('constants');
if (this.get('document.protection') === constants.ProtectionType.Review) {
model.page.set('status', model.page.get('relativeId') === '' ? constants.ChangeState.PendingNew : constants.ChangeState.Pending);
}
return this.get('onInsertSection')(model);
},
actions: {
onSavePageAsBlock(block) {
let cb = this.get('onSavePageAsBlock');