mirror of
https://github.com/documize/community.git
synced 2025-07-22 22:59:43 +02:00
document view revisions UX
This commit is contained in:
parent
66bc874d95
commit
e61b2d0aa8
13 changed files with 130 additions and 160 deletions
|
@ -238,6 +238,13 @@ export default Controller.extend(NotifierMixin, TooltipMixin, {
|
|||
let doc = this.get('model.document');
|
||||
doc.set('tags', tags);
|
||||
this.get('documentService').save(doc);
|
||||
}
|
||||
},
|
||||
|
||||
onRollback(pageId, revisionId) {
|
||||
this.get('documentService').rollbackPage(this.get('model.document.id'), pageId, revisionId).then(() => {
|
||||
this.set('tab', 'content');
|
||||
this.get('target._routerMicrolib').refresh();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue