diff --git a/platypush/backend/http/webapp/src/components/Light/Animate.vue b/platypush/backend/http/webapp/src/components/Light/Animate.vue index ca6d14989..4645879e4 100644 --- a/platypush/backend/http/webapp/src/components/Light/Animate.vue +++ b/platypush/backend/http/webapp/src/components/Light/Animate.vue @@ -229,7 +229,7 @@ export default { const eventType = this.animationRunning ? 'stop' : 'start' const selectedLights = Object.entries(this.selectedLights).filter((light) => light[1]).map((light) => light[0]) if (!selectedLights.length) { - this.warn('No lights have been selected') + this.notifyWarning('No lights have been selected') return } diff --git a/platypush/backend/http/webapp/src/utils/Notification.vue b/platypush/backend/http/webapp/src/utils/Notification.vue index 8478a9b8b..f6446ceff 100644 --- a/platypush/backend/http/webapp/src/utils/Notification.vue +++ b/platypush/backend/http/webapp/src/utils/Notification.vue @@ -8,14 +8,14 @@ export default { bus.emit('notification-create', notification) }, - warn(msg) { + notifyWarning(msg) { this.notify({ text: msg, warning: true, }) }, - error(msg) { + notifyError(msg) { this.notify({ text: msg, error: true, diff --git a/platypush/backend/http/webapp/src/views/Dashboard.vue b/platypush/backend/http/webapp/src/views/Dashboard.vue index 545b9edb7..172b7ed32 100644 --- a/platypush/backend/http/webapp/src/views/Dashboard.vue +++ b/platypush/backend/http/webapp/src/views/Dashboard.vue @@ -106,7 +106,7 @@ export default { const template = (await this.request('config.get_dashboard', { name: name })) if (!template) { - this.error(`Dashboard ${name} not found`) + this.notifyError(`Dashboard ${name} not found`) } this.parseTemplate(name, template)