mirror of https://github.com/nocodb/nocodb
braks
2 years ago
9 changed files with 67 additions and 32 deletions
@ -1,10 +1,15 @@ |
|||||||
<script setup lang="ts"> |
<script setup lang="ts"> |
||||||
import MdiAddIcon from '~icons/mdi/plus-outline' |
import MdiAddIcon from '~icons/mdi/plus-outline' |
||||||
const emit = defineEmits(['add-row']) |
|
||||||
|
const emits = defineEmits(['addRow']) |
||||||
</script> |
</script> |
||||||
|
|
||||||
<template> |
<template> |
||||||
<MdiAddIcon class="text-grey" @click="emit('add-row')" /> |
<a-tooltip placement="left"> |
||||||
</template> |
<template #title> {{ $t('activity.addRow') }} </template> |
||||||
|
|
||||||
<style scoped></style> |
<div class="nc-sidebar-right-item hover:after:bg-primary/75 group"> |
||||||
|
<MdiAddIcon class="group-hover:(!text-white)" @click="emits('addRow')" /> |
||||||
|
</div> |
||||||
|
</a-tooltip> |
||||||
|
</template> |
||||||
|
@ -1,11 +1,18 @@ |
|||||||
<script setup lang="ts"> |
<script setup lang="ts"> |
||||||
import { ReloadViewDataHookInj } from '~/context' |
import { ReloadViewDataHookInj } from '~/context' |
||||||
import MdiReloadIcon from '~icons/mdi/reload' |
import MdiReloadIcon from '~icons/mdi/reload' |
||||||
|
|
||||||
const reloadTri = inject(ReloadViewDataHookInj) |
const reloadTri = inject(ReloadViewDataHookInj) |
||||||
</script> |
</script> |
||||||
|
|
||||||
<template> |
<template> |
||||||
<MdiReloadIcon class="text-grey" @click="reloadTri.trigger()" /> |
<a-tooltip placement="left"> |
||||||
|
<template #title> {{ $t('general.reload') }} </template> |
||||||
|
|
||||||
|
<div class="nc-sidebar-right-item hover:after:bg-green-500 group"> |
||||||
|
<MdiReloadIcon class="group-hover:(!text-white)" @click="reloadTri.trigger()" /> |
||||||
|
</div> |
||||||
|
</a-tooltip> |
||||||
</template> |
</template> |
||||||
|
|
||||||
<style scoped></style> |
<style scoped></style> |
||||||
|
Loading…
Reference in new issue