fix: properly use pagination for group event notifiers (#1512)

This commit is contained in:
Philipp Fischbeck 2022-07-31 20:08:48 +02:00 committed by GitHub
parent 07fef8af9f
commit 34f52c06a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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({