From 88a89bbe4fb94324a29699c9ac66541c6f6e0d38 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Thu, 25 Jan 2018 13:03:12 +0200 Subject: [PATCH] add a loading animation to button --- client/src/index.js | 12 +++++ .../ui/components/BdSettingsWrapper.vue | 19 +++++++- .../templates/BdSettingsWrapper.html | 2 +- .../styles/partials/bdsettings/button.scss | 18 ++++++- .../src/styles/partials/generic/buttons.scss | 47 ------------------- 5 files changed, 47 insertions(+), 51 deletions(-) diff --git a/client/src/index.js b/client/src/index.js index 7d32f077..aabb96f1 100644 --- a/client/src/index.js +++ b/client/src/index.js @@ -22,6 +22,7 @@ class BetterDiscord { Events.on('global-ready', e => { const { UI } = require('./modules/ui/vueui.js'); this.ui = new UI(); + this.init(); }); //Inject styles to head for now @@ -30,6 +31,17 @@ class BetterDiscord { style.type = 'text/css'; style.appendChild(document.createTextNode(styles)); document.head.appendChild(style); + + this.init(); + } + + async init() { + try { + await PluginManager.loadAllPlugins(); + } catch (err) { + } + + Events.emit('ready'); } } diff --git a/client/src/modules/ui/components/BdSettingsWrapper.vue b/client/src/modules/ui/components/BdSettingsWrapper.vue index 9aa5a346..9f25ac66 100644 --- a/client/src/modules/ui/components/BdSettingsWrapper.vue +++ b/client/src/modules/ui/components/BdSettingsWrapper.vue @@ -1,12 +1,19 @@