web/satellite/vuetify-poc: prevent page reload on folder create

Remove default page reload behavior on form submit during folder creation.

Issue:
https://github.com/storj/storj/issues/6559

Change-Id: I6d5c433adb4046238f958761b4d1f27696cfc459
This commit is contained in:
Vitalii 2023-12-04 14:29:31 +02:00 committed by Vitalii Shpital
parent b31e417546
commit c5e44072a8

View File

@ -42,7 +42,7 @@
<v-divider />
<v-form v-model="formValid" class="px-7 pt-9 pb-4">
<v-form v-model="formValid" class="px-7 pt-9 pb-4" @submit.prevent="createFolder">
<v-row>
<v-col cols="12">
<v-text-field
@ -155,6 +155,8 @@ const files = computed((): BrowserObject[] => {
});
function createFolder(): void {
if (!formValid.value) return;
withLoading(async () => {
try {
await obStore.createFolder(folder.value.trim());