From 1df9664937d6220c0d0c16c3671c3b46465c5c51 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 25 Jan 2023 21:45:01 +0000 Subject: [PATCH] Added notify for non admins --- lnbits/core/templates/core/install.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lnbits/core/templates/core/install.html b/lnbits/core/templates/core/install.html index 9141d345..78d009e4 100644 --- a/lnbits/core/templates/core/install.html +++ b/lnbits/core/templates/core/install.html @@ -2,9 +2,7 @@ %} {{ window_vars(user, extensions) }}{% block page %}
-

- Add Extensions(admin only) -

+

Add Extensions

@@ -467,6 +465,13 @@ } }, created: function () { + if (!this.g.user.admin) { + this.$q.notify({ + timeout: 3000, + message: 'Only Admins can install extensions', + icon: null + }) + } this.extensions = JSON.parse('{{extensions | tojson | safe}}').map(e => ({ ...e, inProgress: false