@@ -256,7 +256,7 @@
*/
import Modal from '../components/Modal'
- import Loader from '../components/Loader'
+ import Spinner from '../components/Spinner'
import OtpDisplayer from '../components/OtpDisplayer'
import draggable from 'vuedraggable'
import Form from './../components/Form'
@@ -364,7 +364,7 @@
Modal,
OtpDisplayer,
draggable,
- Loader
+ Spinner
},
methods: {
@@ -421,8 +421,8 @@
this.selectAccount(account.id)
}
else {
- this.$root.showLoader();
- this.$refs.OtpDisplayer.show(account.id)
+ this.$root.showSpinner();
+ this.$refs.OtpDisplayer.show(account.id);
}
},
diff --git a/resources/lang/en/commons.php b/resources/lang/en/commons.php
index aff6bdee..b4a8c893 100644
--- a/resources/lang/en/commons.php
+++ b/resources/lang/en/commons.php
@@ -49,6 +49,7 @@
'reload' => 'Reload',
'some_data_have_changed' => 'Some data have changed. You should',
'generate' => 'Generate',
+ 'generating_otp' => 'Generating OTP',
'open_in_browser' => 'Open in browser',
'continue' => 'Continue',
'discard' => 'Discard',
@@ -70,4 +71,4 @@
'file' => 'File',
'or' => 'OR',
'close_the_x_page' => 'Close the {pagetitle} page',
-];
\ No newline at end of file
+];
diff --git a/resources/sass/app.scss b/resources/sass/app.scss
index b9d42908..b5efe9f8 100644
--- a/resources/sass/app.scss
+++ b/resources/sass/app.scss
@@ -1204,6 +1204,37 @@ footer .field.is-grouped {
}
}
+// Themed Spinner
+.spinner-container {
+ background-color: $white-ter;
+ .spinner {
+ color: $dark;
+ > div {
+ background-color: $dark !important;
+ }
+ }
+}
+:root[data-theme="dark"] .spinner-container {
+ background-color: $black-ter;
+ .spinner {
+ color: $light;
+ > div {
+ background-color: $light !important;
+ }
+ }
+}
+@media (prefers-color-scheme: dark) {
+ :root[data-theme="system"] .spinner-container {
+ background-color: $black-ter;
+ .spinner {
+ color: $light;
+ > div {
+ background-color: $light !important;
+ }
+ }
+ }
+}
+
.fadeInOut-enter-active {
animation: fadeIn 500ms
}
@@ -1374,4 +1405,4 @@ footer .field.is-grouped {
to {
transform: translateY(-2rem);
}
-}
\ No newline at end of file
+}