Skip to content
Snippets Groups Projects
Verified Commit 71622be9 authored by magicfelix's avatar magicfelix
Browse files

Turn UpdateIndicator component to Vue file

parent d19756fb
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@
<script>
import {CHANGES, SAVED, UPDATING} from "../../UpdateStatuses.js";
import UpdateIndicator from "./UpdateIndicator.js";
import UpdateIndicator from "./UpdateIndicator.vue";
import LessonDocumentations from "./LessonDocumentations.vue";
export default {
......
<template>
<v-tooltip bottom>
<template v-slot:activator="{ on, attrs }">
<v-btn
absolute
fab
right
icon
v-bind="attrs"
v-on="on"
@click="() => {isAbleToClick ? $emit('manual-update') : null}"
:loading="status === UPDATING"
>
<v-icon
v-if="status !== UPDATING"
:color="color"
>
{{ icon }}
</v-icon>
</v-btn>
</template>
<span>{{ text }}</span>
</v-tooltip>
</template>
<script>
import {CHANGES, ERROR, SAVED, UPDATING} from "../../UpdateStatuses.js";
export default {
......@@ -50,30 +78,5 @@ export default {
return this.status === CHANGES || this.status === ERROR;
}
},
template: `
<v-tooltip bottom>
<template v-slot:activator="{ on, attrs }">
<v-btn
absolute
fab
right
icon
v-bind="attrs"
v-on="on"
@click="() => {isAbleToClick ? $emit('manual-update') : null}"
:loading="status === UPDATING"
>
<v-icon
v-if="status !== UPDATING"
:color="color"
>
{{ icon }}
</v-icon>
</v-btn>
</template>
<span>{{ text }}</span>
</v-tooltip>
`,
}
\ No newline at end of file
}
</script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment