Skip to content

Commit

Permalink
style: use delete icon for all removal operations
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
  • Loading branch information
pedrolamas committed Nov 5, 2024
1 parent 01d0a7d commit f0559c5
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/components/settings/auth/AuthSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@
text
x-small
color=""
class="ms-1"
@click.stop="handleRemoveUser(user)"
>
<v-icon color="">
$close
$delete
</v-icon>
</app-btn>
</app-setting>
Expand Down
20 changes: 17 additions & 3 deletions src/components/settings/cameras/CameraSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
:key="`camera-${camera.uid}`"
:r-cols="2"
:sub-title="camera.source === 'config' ? $t('app.general.tooltip.managed_by_moonraker') : undefined"
@click="handleEditDialog(camera)"
>
<template #title>
{{ camera.name }} <v-icon
Expand All @@ -44,16 +43,31 @@
$warning
</v-icon>
</template>

<app-btn
fab
text
x-small
color=""
class="ms-1"
@click.stop="handleEditDialog(camera)"
>
<v-icon color="">
$edit
</v-icon>
</app-btn>

<app-btn
v-if="camera.source !== 'config'"
:disabled="camera.source === 'config'"
fab
text
x-small
color=""
class="ms-1"
@click.stop="handleRemoveCamera(camera)"
>
<v-icon color="">
$close
$delete
</v-icon>
</app-btn>
</app-setting>
Expand Down
4 changes: 3 additions & 1 deletion src/components/settings/console/ConsoleSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
text
x-small
color=""
class="ms-1"
@click.stop="handleEditFilterDialog(filter)"
>
<v-icon color="">
Expand All @@ -53,10 +54,11 @@
text
x-small
color=""
class="ms-1"
@click.stop="handleRemoveFilter(filter)"
>
<v-icon color="">
$close
$delete
</v-icon>
</app-btn>
</app-setting>
Expand Down
4 changes: 3 additions & 1 deletion src/components/settings/macros/MacroSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
text
x-small
color=""
class="ms-1"
@click.stop="handleEditCategoryDialog(category)"
>
<v-icon color="">
Expand All @@ -60,10 +61,11 @@
text
x-small
color=""
class="ms-1"
@click.stop="handleRemoveCategory(category)"
>
<v-icon color="">
$close
$delete
</v-icon>
</app-btn>

Expand Down
4 changes: 3 additions & 1 deletion src/components/settings/presets/PresetSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,17 @@
{{ k }}: {{ value.value }}<small>°C</small>
</span>
</template>

<app-btn
fab
text
x-small
color=""
class="ms-1"
@click.stop="handleRemovePreset(preset)"
>
<v-icon color="">
$close
$delete
</v-icon>
</app-btn>
</app-setting>
Expand Down
2 changes: 1 addition & 1 deletion src/components/widgets/bedmesh/BedMeshControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
v-on="on"
>
<v-icon color="">
$close
$delete
</v-icon>
</app-btn>
</template>
Expand Down

0 comments on commit f0559c5

Please sign in to comment.