1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-05 13:35:23 +02:00

fix: Delete Group From Admin Page (#5837)

This commit is contained in:
Michael Genson 2025-07-29 13:53:52 -05:00 committed by GitHub
parent eec4eeb76a
commit 3b74ddd9ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
import { useUserApi } from "~/composables/api"; import { useUserApi } from "~/composables/api";
import type { GroupBase, GroupSummary } from "~/lib/api/types/user"; import type { GroupBase, GroupInDB, GroupSummary } from "~/lib/api/types/user";
const groupSelfRef = ref<GroupSummary | null>(null); const groupSelfRef = ref<GroupSummary | null>(null);
const loading = ref(false); const loading = ref(false);
@ -45,7 +45,7 @@ export const useGroupSelf = function () {
export const useGroups = function () { export const useGroups = function () {
const api = useUserApi(); const api = useUserApi();
const loading = ref(false); const loading = ref(false);
const groups = ref<GroupSummary[] | null>(null); const groups = ref<GroupInDB[] | null>(null);
async function getAllGroups() { async function getAllGroups() {
loading.value = true; loading.value = true;

View file

@ -73,7 +73,7 @@
variant="text" variant="text"
@click.stop=" @click.stop="
confirmDialog = true; confirmDialog = true;
deleteTarget = +item.id; deleteTarget = item.id;
" "
> >
<v-icon> <v-icon>
@ -114,7 +114,7 @@ export default defineNuxtComponent({
const state = reactive({ const state = reactive({
createDialog: false, createDialog: false,
confirmDialog: false, confirmDialog: false,
deleteTarget: 0, deleteTarget: "",
search: "", search: "",
headers: [ headers: [
{ {