Skip to content

Commit

Permalink
fix(ui): add missing filter tooltips
Browse files Browse the repository at this point in the history
There is plenty of buttons within the filter. Tooltips should explain
their functionality.
  • Loading branch information
yuri1969 committed Nov 15, 2024
1 parent f3edfbc commit 5df8037
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
5 changes: 4 additions & 1 deletion ui/src/components/filter/KestraFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
</el-select>

<el-button-group class="d-inline-flex">
<el-button :icon="Magnify" @click="triggerSearch" />
<kicon :tooltip="$t('search')" placement="bottom">
<el-button :icon="Magnify" @click="triggerSearch" />
</kicon>
<Save :disabled="!current.length" :prefix :current />
<Refresh v-if="refresh.shown" @refresh="refresh.callback" />
<Settings :charts />
Expand All @@ -82,6 +84,7 @@
import History from "./components/history/History.vue";
import Save from "./components/Save.vue";
import Settings from "./components/Settings.vue";
import Kicon from "../Kicon.vue";
import Magnify from "vue-material-design-icons/Magnify.vue";
Expand Down
6 changes: 5 additions & 1 deletion ui/src/components/filter/components/Save.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<el-button disabled :icon="Save" @click="toggle(true)" />
</el-tooltip>

<el-button v-else :icon="Save" @click="toggle(true)" />
<kicon v-else :tooltip="$t('filters.save.dialog.heading')" placement="bottom">
<el-button :icon="Save" @click="toggle(true)" />
</kicon>

<el-dialog
v-model="visible"
Expand Down Expand Up @@ -51,6 +53,8 @@
import {useI18n} from "vue-i18n";
const {t} = useI18n({useScope: "global"});
import Kicon from "../../Kicon.vue";
import Save from "vue-material-design-icons/ContentSaveOutline.vue";
const props = defineProps({
Expand Down
6 changes: 5 additions & 1 deletion ui/src/components/filter/components/Settings.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<el-dropdown trigger="click" placement="bottom-end">
<el-button :icon="TableCog" />
<kicon :tooltip="$t('settings.label')" placement="bottom">
<el-button :icon="TableCog" />
</kicon>

<template #dropdown>
<el-dropdown-menu class="py-2 settings-dropdown">
Expand All @@ -18,6 +20,8 @@
</template>

<script setup lang="ts">
import Kicon from "../../Kicon.vue";
import TableCog from "vue-material-design-icons/TableCog.vue";
import {useI18n} from "vue-i18n";
Expand Down
5 changes: 4 additions & 1 deletion ui/src/components/filter/components/history/History.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
placement="bottom-start"
@visible-change="loadAll"
>
<el-button :icon="History" class="rounded-0 rounded-start" />
<kicon :tooltip="$t('filters.recent.label')" placement="bottom">
<el-button :icon="History" class="rounded-0 rounded-start" />
</kicon>

<template #dropdown>
<el-dropdown-menu class="py-2 history-dropdown">
Expand Down Expand Up @@ -67,6 +69,7 @@
const {t} = useI18n({useScope: "global"});
import HistoryItem from "./HistoryItem.vue";
import Kicon from "../../../Kicon.vue";
import History from "vue-material-design-icons/History.vue";
import DeleteOutline from "vue-material-design-icons/DeleteOutline.vue";
Expand Down

0 comments on commit 5df8037

Please sign in to comment.