mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue #277 : Add isSaving state to storageService
This commit is contained in:
@@ -32,9 +32,6 @@
|
||||
this.addEventListener(this.saveBrowserButton, 'click', this.saveBrowser_);
|
||||
this.addEventListener('form[name=save-form]', 'submit', this.onSaveFormSubmit_);
|
||||
|
||||
$.subscribe(Events.BEFORE_SAVING_PISKEL, this.disableSaveButtons_.bind(this));
|
||||
$.subscribe(Events.AFTER_SAVING_PISKEL, this.enableSaveButtons_.bind(this));
|
||||
|
||||
if (pskl.app.isLoggedIn()) {
|
||||
this.authenticatedUserInit_();
|
||||
}
|
||||
@@ -42,6 +39,13 @@
|
||||
if (pskl.utils.Environment.detectNodeWebkit()) {
|
||||
this.desktopApplicationInit_();
|
||||
}
|
||||
|
||||
$.subscribe(Events.BEFORE_SAVING_PISKEL, this.disableSaveButtons_.bind(this));
|
||||
$.subscribe(Events.AFTER_SAVING_PISKEL, this.enableSaveButtons_.bind(this));
|
||||
|
||||
if (pskl.app.storageService.isSaving()) {
|
||||
this.disableSaveButtons_();
|
||||
}
|
||||
};
|
||||
|
||||
ns.SaveController.prototype.authenticatedUserInit_ = function () {
|
||||
|
||||
Reference in New Issue
Block a user