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

Turn UpdateIndicator component to Vue file

parent cc22d1b8
No related branches found
No related tags found
1 merge request!284Draft: Redesign entering of lesson documentation
......@@ -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