mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
561 B
22 lines
561 B
2 years ago
|
<script setup lang="ts">
|
||
|
import { ReloadViewDataHookInj, inject } from '#imports'
|
||
|
|
||
2 years ago
|
const { $e } = useNuxtApp()
|
||
2 years ago
|
const reloadHook = inject(ReloadViewDataHookInj)!
|
||
|
|
||
2 years ago
|
const onClick = () => {
|
||
|
$e('a:table:reload:navbar')
|
||
|
reloadHook.trigger()
|
||
|
}
|
||
2 years ago
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<a-tooltip placement="bottom">
|
||
|
<template #title> {{ $t('general.reload') }} </template>
|
||
|
|
||
|
<div class="group flex align-center">
|
||
2 years ago
|
<MdiReload class="cursor-pointer text-gray-500 group-hover:(text-primary) nc-toolbar-reload-btn" @click="onClick" />
|
||
2 years ago
|
</div>
|
||
|
</a-tooltip>
|
||
|
</template>
|