1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +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

@ -9,11 +9,34 @@
//
// https://documize.com
import $ from 'jquery';
import { inject as service } from '@ember/service';
import Component from '@ember/component';
export default Component.extend({
classNames: ['layout-footer'],
tagName: 'footer',
appMeta: service()
appMeta: service(),
init() {
this._super(...arguments);
this.eventBus.subscribe('notifyUser', this, 'handleEvent');
},
handleEvent(msg) {
if (msg === 'wait') {
this.set('showWait', true);
this.set('showDone', false);
}
if (msg === 'done') {
$('.progress-done').removeClass('zoomOut').addClass('zoomIn');
this.set('showWait', false);
this.set('showDone', true);
setTimeout(function() {
$('.progress-done').removeClass('zoomIn').addClass('zoomOut');
}, 3000);
}
}
});