Skip to content

Commit

Permalink
web/satellite/vuetify-poc: fix minor issues
Browse files Browse the repository at this point in the history
This change fixes the invite members menu item on the projects table.
It also updates the text for the empty state of the file browser.

Issues: #6618,#6619

Change-Id: If19e7b41083b40f03169a033db72dde530a879b1
  • Loading branch information
wilfred-asomanii authored and Storj Robot committed Dec 21, 2023
1 parent 445cd8d commit 41baf89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Expand Up @@ -72,7 +72,7 @@
>
<template #no-data>
<div class="d-flex justify-center">
<p class="text-body-2">No data found.</p>
<p class="text-body-2">{{ search ? 'No data found.' : 'Drag and drop files to upload' }}</p>
</div>
</template>

Expand Down
Expand Up @@ -26,7 +26,7 @@
:items="tableFiles"
:search="search"
:item-value="(item: BrowserObjectWrapper) => item.browserObject.Key"
no-data-text="No data found"
:no-data-text="search ? 'No data found' : 'Drag and drop files to upload'"
:page="cursor.page"
hover
must-sort
Expand Down
Expand Up @@ -92,7 +92,7 @@
</v-list-item-title>
</v-list-item>
<v-divider class="my-1" />
<v-list-item link>
<v-list-item link @click="emit('inviteClick', item)">
<template #prepend>
<icon-team size="18" />
</template>
Expand Down Expand Up @@ -154,6 +154,7 @@ const props = defineProps<{
const emit = defineEmits<{
(event: 'joinClick', item: ProjectItemModel): void;
(event: 'inviteClick', item: ProjectItemModel): void;
}>();
const search = ref<string>('');
Expand Down
2 changes: 1 addition & 1 deletion web/satellite/vuetify-poc/src/views/Projects.vue
Expand Up @@ -74,7 +74,7 @@
<v-row v-else-if="isTableView">
<!-- Table view -->
<v-col>
<ProjectsTableComponent :items="items" @join-click="onJoinClicked" />
<ProjectsTableComponent :items="items" @join-click="onJoinClicked" @invite-click="(item) => onInviteClicked(item)" />
</v-col>
</v-row>

Expand Down

0 comments on commit 41baf89

Please sign in to comment.