Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(History): adjust button tooltips to consistent style #2018

Merged
merged 6 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 22 additions & 13 deletions src/components/panels/HistoryListPanel.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<template>

Check failure on line 1 in src/components/panels/HistoryListPanel.vue

View workflow job for this annotation

GitHub Actions / Prettier

src/components/panels/HistoryListPanel.vue#L1

There are issues with this file's formatting, please run Prettier to fix the errors
<panel :icon="mdiFileDocumentMultipleOutline" :title="$t('History.PrintHistory')" card-class="history-list-panel">
<v-card-text>
<v-row>
Expand All @@ -14,15 +14,19 @@
dense />
</v-col>
<v-col class="offset-4 col-4 d-flex align-center justify-end">
<template v-if="selectedJobs.length">
<v-btn
:title="$t('History.Delete')"
color="error"
class="px-2 minwidth-0 ml-3"
@click="deleteSelectedDialog = true">
<v-icon>{{ mdiDelete }}</v-icon>
</v-btn>
</template>
<v-tooltip top>
rackrick marked this conversation as resolved.
Show resolved Hide resolved
rackrick marked this conversation as resolved.
Show resolved Hide resolved
<template #activator="{ on, attrs }" v-if="selectedJobs.length">

Check warning on line 18 in src/components/panels/HistoryListPanel.vue

View workflow job for this annotation

GitHub Actions / ESLint

src/components/panels/HistoryListPanel.vue#L18

Attribute "v-if" should go before "#activator" (vue/attributes-order)
meteyou marked this conversation as resolved.
Show resolved Hide resolved
<v-btn
color="error"
class="px-2 minwidth-0 ml-3"
v-bind="attrs"
v-on="on"
@click="deleteSelectedDialog = true">
<v-icon>{{ mdiDelete }}</v-icon>
</v-btn>
</template>
<span>{{ $t('History.Delete') }}</span>
</v-tooltip>
<v-tooltip top>
<template #activator="{ on, attrs }">
<v-btn
Expand Down Expand Up @@ -58,10 +62,15 @@
</v-tooltip>
<v-menu :offset-y="true" :close-on-content-click="false">
<template #activator="{ on, attrs }">
<v-btn class="px-2 minwidth-0 ml-3" v-bind="attrs" v-on="on">
<v-icon>{{ mdiCog }}</v-icon>
</v-btn>
</template>
<v-tooltip top>
rackrick marked this conversation as resolved.
Show resolved Hide resolved
<template #activator="{ on: onToolTip }">
<v-btn class="px-2 minwidth-0 ml-3" v-bind="attrs" v-on="{ ...on, ...onToolTip }">
rackrick marked this conversation as resolved.
Show resolved Hide resolved
<v-icon>{{ mdiCog }}</v-icon>
</v-btn>
</template>
<span>{{ $t('History.Settings') }}</span>
rackrick marked this conversation as resolved.
Show resolved Hide resolved
</v-tooltip>
</template>
<v-list>
<v-list-item class="minHeight36">
<v-checkbox
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@
"SelectedFilamentUsed": "Selected Filament Used",
"SelectedJobs": "Selected Jobs",
"SelectedPrinttime": "Selected Print Time",
"Settings": "Settings",
"Slicer": "Slicer",
"SlicerVersion": "Slicer Version",
"StartTime": "Start Time",
Expand Down
Loading