From c5967c3f8db9fda303e650f807e43250e3ae090a Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 28 Apr 2021 11:11:48 +0200 Subject: [PATCH 1/7] loading spinner on login --- frontend/package.json | 1 + frontend/src/plugins/dashboard-plugin.js | 5 +++++ frontend/src/views/Layout/AuthLayout_gdd.vue | 16 ++++++++++++++++ frontend/src/views/Pages/Login.vue | 4 ++++ 4 files changed, 26 insertions(+) diff --git a/frontend/package.json b/frontend/package.json index 00e0ca45b..18e561232 100755 --- a/frontend/package.json +++ b/frontend/package.json @@ -69,6 +69,7 @@ "vue-good-table": "^2.21.3", "vue-i18n": "^8.22.4", "vue-jest": "^3.0.7", + "vue-loading-overlay": "^3.4.2", "vue-moment": "^4.1.0", "vue-qrcode": "^0.3.5", "vue-qrcode-reader": "^2.3.16", diff --git a/frontend/src/plugins/dashboard-plugin.js b/frontend/src/plugins/dashboard-plugin.js index 9b6e350dc..881fecf7d 100755 --- a/frontend/src/plugins/dashboard-plugin.js +++ b/frontend/src/plugins/dashboard-plugin.js @@ -37,6 +37,10 @@ import 'vue-good-table/dist/vue-good-table.css' import VueMoment from 'vue-moment' +import Loading from 'vue-loading-overlay' +// import the styles +import 'vue-loading-overlay/dist/vue-loading.css' + Object.keys(rules).forEach((rule) => { extend(rule, { ...rules[rule], // copies rule configuration @@ -56,6 +60,7 @@ export default { Vue.use(VueQrcodeReader) Vue.use(VueQrcode) Vue.use(VueFlatPickr) + Vue.use(Loading) configure({ classes: { valid: 'is-valid', diff --git a/frontend/src/views/Layout/AuthLayout_gdd.vue b/frontend/src/views/Layout/AuthLayout_gdd.vue index 5da4d8386..0e963e2ba 100644 --- a/frontend/src/views/Layout/AuthLayout_gdd.vue +++ b/frontend/src/views/Layout/AuthLayout_gdd.vue @@ -1,5 +1,6 @@