refactor: remove icons from buttons and cleanup
- Remove IconPlus from hashtags and labels buttons - Remove unused lang/php_*.json files - Format cleanup Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
0e6540bda0
commit
2e7ea05a97
4 changed files with 17 additions and 46 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -58,6 +58,7 @@ const getHashtagCount = (hashtags: string): number => {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
<Head :title="$t('hashtags.title')" />
|
||||
|
||||
<AppLayout :breadcrumbs="breadcrumbs">
|
||||
|
|
@ -70,7 +71,6 @@ const getHashtagCount = (hashtags: string): number => {
|
|||
</p>
|
||||
</div>
|
||||
<Button @click="isCreateDialogOpen = true">
|
||||
<IconPlus class="mr-2 h-4 w-4" />
|
||||
{{ $t('hashtags.new_group') }}
|
||||
</Button>
|
||||
</div>
|
||||
|
|
@ -95,20 +95,12 @@ const getHashtagCount = (hashtags: string): number => {
|
|||
<div class="flex items-center justify-between">
|
||||
<CardTitle class="text-lg">{{ hashtag.name }}</CardTitle>
|
||||
<div class="flex items-center gap-1">
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
class="h-8 w-8"
|
||||
@click="openEditDialog(hashtag)"
|
||||
>
|
||||
<Button variant="ghost" size="icon" class="h-8 w-8" @click="openEditDialog(hashtag)">
|
||||
<IconPencil class="h-4 w-4" />
|
||||
</Button>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
<Button variant="ghost" size="icon"
|
||||
class="h-8 w-8 text-destructive hover:text-destructive"
|
||||
@click="handleDelete(hashtag.id)"
|
||||
>
|
||||
@click="handleDelete(hashtag.id)">
|
||||
<IconTrash class="h-4 w-4" />
|
||||
</Button>
|
||||
</div>
|
||||
|
|
@ -130,11 +122,7 @@ const getHashtagCount = (hashtags: string): number => {
|
|||
<CreateDialog v-model:open="isCreateDialogOpen" />
|
||||
<EditDialog v-model:open="isEditDialogOpen" :hashtag="editingHashtag" />
|
||||
|
||||
<ConfirmDeleteModal
|
||||
ref="deleteModal"
|
||||
:title="$t('hashtags.delete.title')"
|
||||
:description="$t('hashtags.delete.description')"
|
||||
:action="$t('hashtags.delete.confirm')"
|
||||
:cancel="$t('hashtags.delete.cancel')"
|
||||
/>
|
||||
</template>
|
||||
<ConfirmDeleteModal ref="deleteModal" :title="$t('hashtags.delete.title')"
|
||||
:description="$t('hashtags.delete.description')" :action="$t('hashtags.delete.confirm')"
|
||||
:cancel="$t('hashtags.delete.cancel')" />
|
||||
</template>
|
||||
|
|
@ -54,6 +54,7 @@ const handleDelete = (labelId: string) => {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
<Head :title="$t('labels.title')" />
|
||||
|
||||
<AppLayout :breadcrumbs="breadcrumbs">
|
||||
|
|
@ -66,7 +67,6 @@ const handleDelete = (labelId: string) => {
|
|||
</p>
|
||||
</div>
|
||||
<Button @click="isCreateDialogOpen = true">
|
||||
<IconPlus class="mr-2 h-4 w-4" />
|
||||
{{ $t('labels.new_label') }}
|
||||
</Button>
|
||||
</div>
|
||||
|
|
@ -90,27 +90,16 @@ const handleDelete = (labelId: string) => {
|
|||
<CardHeader class="pb-3">
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="flex items-center gap-3">
|
||||
<div
|
||||
class="h-6 w-6 rounded-md"
|
||||
:style="{ backgroundColor: label.color }"
|
||||
/>
|
||||
<div class="h-6 w-6 rounded-md" :style="{ backgroundColor: label.color }" />
|
||||
<CardTitle class="text-lg">{{ label.name }}</CardTitle>
|
||||
</div>
|
||||
<div class="flex items-center gap-1">
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
class="h-8 w-8"
|
||||
@click="openEditDialog(label)"
|
||||
>
|
||||
<Button variant="ghost" size="icon" class="h-8 w-8" @click="openEditDialog(label)">
|
||||
<IconPencil class="h-4 w-4" />
|
||||
</Button>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
<Button variant="ghost" size="icon"
|
||||
class="h-8 w-8 text-destructive hover:text-destructive"
|
||||
@click="handleDelete(label.id)"
|
||||
>
|
||||
@click="handleDelete(label.id)">
|
||||
<IconTrash class="h-4 w-4" />
|
||||
</Button>
|
||||
</div>
|
||||
|
|
@ -124,11 +113,7 @@ const handleDelete = (labelId: string) => {
|
|||
<CreateDialog v-model:open="isCreateDialogOpen" />
|
||||
<EditDialog v-model:open="isEditDialogOpen" :label="editingLabel" />
|
||||
|
||||
<ConfirmDeleteModal
|
||||
ref="deleteModal"
|
||||
:title="$t('labels.delete.title')"
|
||||
:description="$t('labels.delete.description')"
|
||||
:action="$t('labels.delete.confirm')"
|
||||
:cancel="$t('labels.delete.cancel')"
|
||||
/>
|
||||
</template>
|
||||
<ConfirmDeleteModal ref="deleteModal" :title="$t('labels.delete.title')"
|
||||
:description="$t('labels.delete.description')" :action="$t('labels.delete.confirm')"
|
||||
:cancel="$t('labels.delete.cancel')" />
|
||||
</template>
|
||||
Loading…
Reference in a new issue