mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
upgraded Ember and Bootstrap, merged changes
This commit is contained in:
parent
b4fd42da38
commit
5dd7d9c181
114 changed files with 9814 additions and 1361 deletions
|
@ -16,7 +16,6 @@ import ModalMixin from '../../mixins/modal';
|
|||
|
||||
export default Component.extend(ModalMixin, {
|
||||
documentService: service('document'),
|
||||
revisions: [],
|
||||
revision: null,
|
||||
diff: '',
|
||||
hasRevisions: computed('revisions', function() {
|
||||
|
@ -26,6 +25,11 @@ export default Component.extend(ModalMixin, {
|
|||
return this.get('diff').length > 0;
|
||||
}),
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
this.revisions = [];
|
||||
},
|
||||
|
||||
didReceiveAttrs() {
|
||||
this._super(...arguments);
|
||||
this.fetchRevisions();
|
||||
|
@ -65,7 +69,8 @@ export default Component.extend(ModalMixin, {
|
|||
|
||||
onRollback() {
|
||||
let revision = this.get('revision');
|
||||
this.attrs.onRollback(revision.pageId, revision.id);
|
||||
let cb = this.get('onRollback');
|
||||
cb(revision.pageId, revision.id);
|
||||
|
||||
this.modalClose('#document-rollback-modal');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue