mirror of
https://github.com/documize/community.git
synced 2025-07-24 23:59:47 +02:00
Save smart sections correctly post callback refactoring
This commit is contained in:
parent
adef6dfffa
commit
c0d70e38de
6 changed files with 18 additions and 16 deletions
|
@ -52,9 +52,9 @@ export default Component.extend(SectionMixin, NotifierMixin, {
|
|||
|
||||
displayError(reason) {
|
||||
if (netUtil.isAjaxAccessError(reason)) {
|
||||
this.showNotification(`Unable to authenticate`);
|
||||
// this.showNotification(`Unable to authenticate`);
|
||||
} else {
|
||||
this.showNotification(`Something went wrong, try again!`);
|
||||
// this.showNotification(`Something went wrong, try again!`);
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -181,7 +181,7 @@ export default Component.extend(SectionMixin, NotifierMixin, {
|
|||
}, function (reason) { // eslint-disable-line no-unused-vars
|
||||
self.set('authenticated', false);
|
||||
self.set('waiting', false);
|
||||
self.showNotification(`Something went wrong, try again!`);
|
||||
// self.showNotification(`Something went wrong, try again!`);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue