Add Client api to show notifications

This commit is contained in:
Johannes Zellner
2016-01-14 15:08:27 +01:00
parent cb4418b973
commit 4a3319406c

View File

@@ -99,7 +99,11 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
message = error;
}
Notification.error({ title: 'Cloudron Error', message: message, delay: 5000 });
Notification.error({ title: 'Cloudron Error', message: message });
};
Client.prototype.notify = function (title, message, delay) {
Notification.error({ title: title, message: message, delay: delay });
};
Client.prototype.setReady = function () {