mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-03-22 05:49:08 -04:00
TheButton global component (#425)
Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
@@ -72,10 +72,7 @@
|
||||
</v-card-text>
|
||||
|
||||
<template v-slot:open="{ open }">
|
||||
<v-btn color="success" @click="open">
|
||||
<v-icon left> {{ $globals.icons.create }} </v-icon>
|
||||
{{ $t("general.create") }}
|
||||
</v-btn>
|
||||
<TheButton create @click="open" />
|
||||
</template>
|
||||
</BaseDialog>
|
||||
</v-card-actions>
|
||||
|
||||
@@ -105,10 +105,7 @@
|
||||
{{ $t("settings.webhooks.test-webhooks") }}
|
||||
</v-btn>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="success" @click="saveGroupSettings">
|
||||
<v-icon left> {{ $globals.icons.save }} </v-icon>
|
||||
{{ $t("general.update") }}
|
||||
</v-btn>
|
||||
<TheButton update @click="saveGroupSettings" />
|
||||
</v-card-actions>
|
||||
</template>
|
||||
</StatCard>
|
||||
|
||||
@@ -73,10 +73,8 @@
|
||||
</v-virtual-scroll>
|
||||
<v-divider></v-divider>
|
||||
<v-card-actions>
|
||||
<v-spacer class="mx-2"></v-spacer>
|
||||
<v-btn class="my-1 mb-n1" color="success" @click="createTheme">
|
||||
<v-icon left> {{ $globals.icons.create }} </v-icon> {{ $t("general.create") }}
|
||||
</v-btn>
|
||||
<v-spacer></v-spacer>
|
||||
<TheButton class="mt-1 mb-n1" create @click="createTheme" />
|
||||
</v-card-actions>
|
||||
</template>
|
||||
</StatCard>
|
||||
|
||||
@@ -89,10 +89,7 @@
|
||||
file-name="profile_image"
|
||||
/>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="success" @click="updateUser">
|
||||
<v-icon left> {{ $globals.icons.save }} </v-icon>
|
||||
{{ $t("general.update") }}
|
||||
</v-btn>
|
||||
<TheButton update @click="updateUser" />
|
||||
</v-card-actions>
|
||||
</template>
|
||||
</StatCard>
|
||||
|
||||
@@ -5,9 +5,7 @@
|
||||
<h2 class="mt-1 mb-1 ">
|
||||
{{ $t("settings.custom-pages") }}
|
||||
<span>
|
||||
<v-btn color="success" @click="newPage" small class="ml-3">
|
||||
{{ $t("general.create") }}
|
||||
</v-btn>
|
||||
<TheButton create small class="ml-3" @click="newPage" />
|
||||
</span>
|
||||
</h2>
|
||||
<draggable class="row mt-1" v-model="customPages">
|
||||
@@ -33,13 +31,9 @@
|
||||
</v-card-text>
|
||||
|
||||
<v-card-actions>
|
||||
<v-btn text small color="error" @click="deletePage(item.id)">
|
||||
{{ $t("general.delete") }}
|
||||
</v-btn>
|
||||
<TheButton delete small minor @click="deletePage(item.id)" />
|
||||
<v-spacer> </v-spacer>
|
||||
<v-btn small text color="success" @click="editPage(index)">
|
||||
{{ $t("general.edit") }}
|
||||
</v-btn>
|
||||
<TheButton edit small @click="editPage(index)" />
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-col>
|
||||
@@ -47,9 +41,7 @@
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="success" @click="savePages">
|
||||
{{ $t("general.save") }}
|
||||
</v-btn>
|
||||
<TheButton update @click="savePages" />
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
@@ -126,10 +126,7 @@
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="success" @click="saveSettings" class="mr-2">
|
||||
<v-icon left> {{ $globals.icons.save }} </v-icon>
|
||||
{{ $t("general.save") }}
|
||||
</v-btn>
|
||||
<TheButton class="mr-2" update @click="saveSettings" />
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
@@ -36,11 +36,11 @@
|
||||
</BaseDialog>
|
||||
|
||||
<div class="d-flex justify-center align-center pa-2 flex-wrap">
|
||||
<new-category-tag-dialog ref="newDialog" :tag-dialog="isTags">
|
||||
<NewCategoryTagDialog ref="newDialog" :tag-dialog="isTags">
|
||||
<v-btn @click="openNewDialog" small color="success" class="mr-1 mb-1">
|
||||
{{ $t("general.create") }}
|
||||
</v-btn>
|
||||
</new-category-tag-dialog>
|
||||
</NewCategoryTagDialog>
|
||||
|
||||
<BulkAssign isTags="isTags" class="mr-1 mb-1" />
|
||||
|
||||
@@ -72,15 +72,12 @@
|
||||
<v-row>
|
||||
<v-col cols="12" :sm="12" :md="6" :lg="4" :xl="3" v-for="item in results" :key="item.id">
|
||||
<v-card>
|
||||
<v-card-title class="py-1">{{ item.name }}</v-card-title>
|
||||
<v-divider class="mx-2"></v-divider>
|
||||
<v-card-actions>
|
||||
<v-card-title class="py-1">{{ item.name }}</v-card-title>
|
||||
<TheButton minor small delete @click="deleteItem(item.slug)" />
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn small text color="info" @click="openEditDialog(item)">
|
||||
{{ $t("general.edit") }}
|
||||
</v-btn>
|
||||
<v-btn small text color="error" @click="deleteItem(item.slug)">
|
||||
{{ $t("general.delete") }}
|
||||
</v-btn>
|
||||
<TheButton small edit @click="openEditDialog(item)" />
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
@@ -10,12 +10,7 @@
|
||||
@submit="createNotification"
|
||||
>
|
||||
<template v-slot:open="{ open }">
|
||||
<v-btn small color="info" @click="open">
|
||||
<v-icon left>
|
||||
{{ $globals.icons.create }}
|
||||
</v-icon>
|
||||
{{ $t("events.notification") }}
|
||||
</v-btn>
|
||||
<TheButton create small @click="open"> {{ $t("events.notification") }}</TheButton>
|
||||
</template>
|
||||
<template v-slot:default>
|
||||
<v-card-text class="mt-2">
|
||||
@@ -134,14 +129,13 @@
|
||||
<v-icon color="success"> {{ item.user ? "mdi-check" : "" }} </v-icon>
|
||||
</td>
|
||||
<td>
|
||||
<v-btn class="mx-1" small color="error" @click="deleteNotification(item.id)">
|
||||
<v-icon> {{ $globals.icons.delete }} </v-icon>
|
||||
{{ $t("general.delete") }}
|
||||
</v-btn>
|
||||
<v-btn small color="info" @click="testByID(item.id)">
|
||||
<v-icon left> mdi-test-tube</v-icon>
|
||||
<TheButton delete small minor @click="deleteNotification(item.id)"> </TheButton>
|
||||
<TheButton edit small @click="testByID(item.id)">
|
||||
<template v-slot:icon>
|
||||
mdi-test-tube
|
||||
</template>
|
||||
{{ $t("general.test") }}
|
||||
</v-btn>
|
||||
</TheButton>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user