aboutsummaryrefslogtreecommitdiff
path: root/src/components/LoadingModal.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-09-14 19:17:41 +1000
committerTerry Truong <terry06890@gmail.com>2022-09-14 20:29:01 +1000
commit8b5538e0a55a83b1ff190cd5ad689827777e73a7 (patch)
tree33ccb2eadbe9a53dc2a870d57ba5efe758592390 /src/components/LoadingModal.vue
parent556d6c953e74996e0ae6a8328e352ab43735f993 (diff)
Use Pinia to store user settings, palette colors, etc
Move uiOpts and lytOpts to store.ts Add 'const's to *.ts
Diffstat (limited to 'src/components/LoadingModal.vue')
-rw-r--r--src/components/LoadingModal.vue17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/components/LoadingModal.vue b/src/components/LoadingModal.vue
index abd405c..3f941f2 100644
--- a/src/components/LoadingModal.vue
+++ b/src/components/LoadingModal.vue
@@ -9,19 +9,20 @@
</template>
<script setup lang="ts">
-import {computed, PropType} from 'vue';
+import {computed} from 'vue';
import LoaderIcon from './icon/LoaderIcon.vue';
-import {UiOptions} from '../lib';
+import {useStore} from '../store';
-const props = defineProps({
+const store = useStore();
+
+defineProps({
msg: {type: String, required: true},
- uiOpts: {type: Object as PropType<UiOptions>, required: true},
});
const styles = computed(() => ({
- color: props.uiOpts.textColor,
- backgroundColor: props.uiOpts.bgColorDark2,
- borderRadius: props.uiOpts.borderRadius + 'px',
- boxShadow: props.uiOpts.shadowNormal,
+ color: store.color.text,
+ backgroundColor: store.color.bgDark2,
+ borderRadius: store.borderRadius + 'px',
+ boxShadow: store.shadowNormal,
}));
</script>