1
0
Fork 0
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:
sauls8t 2018-04-23 12:46:34 +01:00
parent 9235c183c5
commit 74e9699e1e
4 changed files with 9 additions and 15 deletions

View file

@ -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);
}