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

WIP new document UX/UI

This commit is contained in:
Harvey Kandola 2018-05-29 18:26:04 +01:00
parent 21ba55a58f
commit 36be6243ad
23 changed files with 910 additions and 4231 deletions

View file

@ -1,11 +1,11 @@
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
// by contacting <sales@documize.com>.
//
// https://documize.com
@ -14,16 +14,18 @@ import Component from '@ember/component';
import miscUtil from '../utils/misc';
export default Component.extend({
notifications : null,
init() {
this._super(...arguments);
},
didInsertElement() {
this.eventBus.subscribe('notifyUser', this, 'showNotification');
// this.eventBus.subscribe('notifyUser', this, 'showNotification');
},
willDestroyElement() {
this.eventBus.unsubscribe('notifyUser');
// this.eventBus.unsubscribe('notifyUser');
},
showNotification(msg) {
@ -52,4 +54,4 @@ export default Component.extend({
}, 2500, self.get('notifications').length);
});
},
});
});