mirror of
https://github.com/hay-kot/mealie.git
synced 2025-07-16 10:03:54 -07:00
* fix webhooks not firing due to missing session * disable webhook test button because it doesnt do anything * fix background task administration not working at all * fix error in test
This commit is contained in:
parent
da791ec9c5
commit
84d55eb920
8 changed files with 44 additions and 33 deletions
|
@ -18,6 +18,8 @@
|
|||
icon: $globals.icons.testTube,
|
||||
text: $tc('general.test'),
|
||||
event: 'test',
|
||||
// TODO: There is no functionality hooked up to this. Enable it when there is
|
||||
disabled: true,
|
||||
},
|
||||
{
|
||||
icon: $globals.icons.save,
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
content-class="text-caption"
|
||||
>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn tile :large="large" icon v-bind="attrs" @click="$emit(btn.event)" v-on="on">
|
||||
<v-btn tile :large="large" icon v-bind="attrs" @click="$emit(btn.event)" v-on="on" :disabled="btn.disabled">
|
||||
<v-icon> {{ btn.icon }} </v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
@ -43,6 +43,7 @@ export interface ButtonOption {
|
|||
text: string;
|
||||
event: string;
|
||||
children?: ButtonOption[];
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { BaseAPI } from "../base/base-clients";
|
||||
import { ServerTask } from "~/lib/api/types/server";
|
||||
import { PaginationData } from "~/lib/api/types/non-generated";
|
||||
|
||||
const prefix = "/api";
|
||||
|
||||
|
@ -13,6 +14,6 @@ export class AdminTaskAPI extends BaseAPI {
|
|||
}
|
||||
|
||||
async getAll() {
|
||||
return await this.requests.get<ServerTask[]>(routes.base);
|
||||
return await this.requests.get<PaginationData<ServerTask>>(routes.base);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ export default defineComponent({
|
|||
const { data } = await api.serverTasks.getAll();
|
||||
|
||||
if (data) {
|
||||
tasks.value = data;
|
||||
tasks.value = data.items;
|
||||
}
|
||||
loading.value = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue