2021-05-26 04:01:22 +00:00
|
|
|
<template>
|
2021-05-29 23:54:18 +00:00
|
|
|
<div class="mx-auto">
|
|
|
|
<v-progress-circular :width="size.width" :size="size.size" color="primary lighten-2" indeterminate>
|
|
|
|
<div class="text-center">
|
|
|
|
<v-icon :size="size.icon" color="primary lighten-2">
|
|
|
|
{{ $globals.icons.primary }}
|
|
|
|
</v-icon>
|
|
|
|
<div v-if="large" class="text-small">
|
|
|
|
<slot>
|
2021-06-22 18:23:52 +00:00
|
|
|
{{ small ? "" : waitingText }}
|
2021-05-29 23:54:18 +00:00
|
|
|
</slot>
|
|
|
|
</div>
|
2021-05-26 04:01:22 +00:00
|
|
|
</div>
|
2021-05-29 23:54:18 +00:00
|
|
|
</v-progress-circular>
|
|
|
|
<div v-if="!large" class="text-small">
|
|
|
|
<slot>
|
2021-06-22 18:23:52 +00:00
|
|
|
{{ small ? "" : waitingText }}
|
2021-05-29 23:54:18 +00:00
|
|
|
</slot>
|
2021-05-26 04:01:22 +00:00
|
|
|
</div>
|
2021-05-29 23:54:18 +00:00
|
|
|
</div>
|
2021-05-26 04:01:22 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
loading: {
|
2021-08-08 00:49:55 +00:00
|
|
|
type: Boolean,
|
2021-05-26 04:01:22 +00:00
|
|
|
default: true,
|
|
|
|
},
|
2021-05-29 23:54:18 +00:00
|
|
|
small: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
medium: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true,
|
|
|
|
},
|
|
|
|
large: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
size() {
|
|
|
|
if (this.small) {
|
|
|
|
return {
|
|
|
|
width: 2,
|
|
|
|
icon: 30,
|
|
|
|
size: 50,
|
|
|
|
};
|
|
|
|
} else if (this.large) {
|
|
|
|
return {
|
|
|
|
width: 4,
|
|
|
|
icon: 120,
|
|
|
|
size: 200,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
width: 3,
|
|
|
|
icon: 75,
|
|
|
|
size: 125,
|
|
|
|
};
|
2021-05-26 04:01:22 +00:00
|
|
|
},
|
2021-06-22 18:23:52 +00:00
|
|
|
waitingText() {
|
|
|
|
return this.$t("general.loading-recipes");
|
2021-08-08 00:49:55 +00:00
|
|
|
},
|
2021-05-26 04:01:22 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|