mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-03 18:53:17 -05:00 
			
		
		
		
	fix: properly use pagination for group event notifiers (#1512)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						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({
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user