|
|
@ -1,9 +1,8 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
import { ReloadViewDataHookInj, RightSidebarInj } from '~/context' |
|
|
|
import { ReloadViewDataHookInj, RightSidebarInj } from '~/context' |
|
|
|
import MdiReloadIcon from '~icons/mdi/reload' |
|
|
|
|
|
|
|
import { inject, ref } from '#imports' |
|
|
|
import { inject, ref } from '#imports' |
|
|
|
|
|
|
|
|
|
|
|
const reloadTri = inject(ReloadViewDataHookInj) |
|
|
|
const reloadTri = inject(ReloadViewDataHookInj)! |
|
|
|
|
|
|
|
|
|
|
|
const sidebarOpen = inject(RightSidebarInj, ref(true)) |
|
|
|
const sidebarOpen = inject(RightSidebarInj, ref(true)) |
|
|
|
</script> |
|
|
|
</script> |
|
|
@ -13,9 +12,7 @@ const sidebarOpen = inject(RightSidebarInj, ref(true)) |
|
|
|
<template #title> {{ $t('general.reload') }} </template> |
|
|
|
<template #title> {{ $t('general.reload') }} </template> |
|
|
|
|
|
|
|
|
|
|
|
<div class="nc-sidebar-right-item hover:after:bg-green-500 group"> |
|
|
|
<div class="nc-sidebar-right-item hover:after:bg-green-500 group"> |
|
|
|
<MdiReloadIcon class="group-hover:(!text-white)" @click="reloadTri.trigger()" /> |
|
|
|
<MdiReload class="group-hover:(!text-white)" @click="reloadTri.trigger(null)" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-tooltip> |
|
|
|
</a-tooltip> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<style scoped></style> |
|
|
|
|
|
|
|