mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Replace showNotificaiton() calls
This commit is contained in:
parent
9235c183c5
commit
74e9699e1e
4 changed files with 9 additions and 15 deletions
|
@ -145,13 +145,13 @@ export default Component.extend({
|
|||
if (data.authProvider === constants.AuthProvider.Keycloak) {
|
||||
this.get('onSync')().then((response) => {
|
||||
if (response.isError) {
|
||||
this.showNotification(response.message);
|
||||
console.log(response.message); // eslint-disable-line no-console
|
||||
data.authProvider = constants.AuthProvider.Documize;
|
||||
this.get('onSave')(data).then(() => {
|
||||
});
|
||||
} else {
|
||||
if (data.authProvider === this.get('appMeta.authProvider')) {
|
||||
this.showNotification(response.message);
|
||||
console.log(response.message); // eslint-disable-line no-console
|
||||
} else {
|
||||
this.get('onChange')(data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue