From f7977cb59ac44cd57be336d7e02f6393d3a686e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hornych?= Date: Wed, 16 Oct 2024 23:38:51 +0200 Subject: [PATCH] feat(#171): updated access to fileId during backup upload --- .../components/BackupCatalogDialog.vue | 11 +++- .../driver/grpc/EvitaDBDriverGrpc.ts | 13 ++-- .../gen/GrpcEvitaManagementAPI_connect.ts | 4 +- .../grpc/gen/GrpcEvitaManagementAPI_pb.ts | 61 ++++++++++++++++++- .../driver/grpc/gen/GrpcEvitaSessionAPI_pb.ts | 17 ++++++ 5 files changed, 94 insertions(+), 12 deletions(-) diff --git a/src/modules/backup-viewer/components/BackupCatalogDialog.vue b/src/modules/backup-viewer/components/BackupCatalogDialog.vue index 89f6f27f..c499a44e 100644 --- a/src/modules/backup-viewer/components/BackupCatalogDialog.vue +++ b/src/modules/backup-viewer/components/BackupCatalogDialog.vue @@ -25,6 +25,15 @@ const emit = defineEmits<{ (e: 'backup'): void }>() +watch( + () => props.modelValue, + (newValue) => { + if (newValue) { + loadAvailableCatalogs().then() + } + } +) + const availableCatalogs = ref([]) const availableCatalogsLoaded = ref(false) const minimalDate = ref() @@ -133,8 +142,6 @@ async function backup(): Promise { return false } } - -loadAvailableCatalogs().then()