web/satellite/vuetify-poc: fix bucket deletion dialog

This change fixes an issue where the bucket deletion dialog wasn't
functional due to an invalid property value. This change also fixes an
issue where access grant worker errors were reported as being caused by
the bucket deletion dialog even when it wasn't open.

Change-Id: If2c2713857c4cc5c3c7ae60e431f5034e78c4c5f
This commit is contained in:
Jeremy Wharton 2023-08-22 10:27:34 -05:00 committed by Storj Robot
parent 7fbabbcf16
commit 0070cd322a
2 changed files with 7 additions and 6 deletions

View File

@ -253,7 +253,7 @@ async function openBucket(bucketName: string): Promise<void> {
* Displays the Delete Bucket dialog.
*/
function showDeleteBucketDialog(bucketName: string): void {
shareBucketName.value = bucketName;
bucketToDelete.value = bucketName;
isDeleteBucketDialogShown.value = true;
}

View File

@ -213,11 +213,12 @@ async function fetchBuckets(): Promise<void> {
/**
* Sets local worker with worker instantiated in store.
*/
watch(() => agStore.state.accessGrantsWebWorker, value => {
worker.value = value;
if (!value) return;
value.onerror = (error: ErrorEvent) => {
watch(model, shown => {
if (!shown) return;
worker.value = agStore.state.accessGrantsWebWorker;
if (!worker.value) return;
worker.value.onerror = (error: ErrorEvent) => {
notify.error(error.message, AnalyticsErrorEventSource.DELETE_BUCKET_MODAL);
};
}, { immediate: true });
});
</script>