mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-06-01 04:36:12 -04:00
fix: properly use pagination for group event notifiers (#1512)
This commit is contained in:
parent
07fef8af9f
commit
34f52c06a6
@ -54,7 +54,7 @@
|
|||||||
</v-expansion-panel-header>
|
</v-expansion-panel-header>
|
||||||
<v-expansion-panel-content>
|
<v-expansion-panel-content>
|
||||||
<v-text-field v-model="notifiers[index].name" label="Name"></v-text-field>
|
<v-text-field v-model="notifiers[index].name" label="Name"></v-text-field>
|
||||||
<v-text-field v-model="notifiers[index].appriseUrl" label="Apprise URL (skipped in blank)"></v-text-field>
|
<v-text-field v-model="notifiers[index].appriseUrl" label="Apprise URL (skipped if blank)"></v-text-field>
|
||||||
<v-checkbox v-model="notifiers[index].enabled" label="Enable Notifier" dense></v-checkbox>
|
<v-checkbox v-model="notifiers[index].enabled" label="Enable Notifier" dense></v-checkbox>
|
||||||
|
|
||||||
<v-divider></v-divider>
|
<v-divider></v-divider>
|
||||||
@ -130,12 +130,12 @@ export default defineComponent({
|
|||||||
|
|
||||||
const notifiers = useAsync(async () => {
|
const notifiers = useAsync(async () => {
|
||||||
const { data } = await api.groupEventNotifier.getAll();
|
const { data } = await api.groupEventNotifier.getAll();
|
||||||
return data ?? [];
|
return data?.items;
|
||||||
}, useAsyncKey());
|
}, useAsyncKey());
|
||||||
|
|
||||||
async function refreshNotifiers() {
|
async function refreshNotifiers() {
|
||||||
const { data } = await api.groupEventNotifier.getAll();
|
const { data } = await api.groupEventNotifier.getAll();
|
||||||
notifiers.value = data ?? [];
|
notifiers.value = data?.items;
|
||||||
}
|
}
|
||||||
|
|
||||||
const createNotifierData: GroupEventNotifierCreate = reactive({
|
const createNotifierData: GroupEventNotifierCreate = reactive({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user