Skip to content

Commit

Permalink
apply hover tool tip to icon buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jatindersingh93 committed Oct 30, 2023
1 parent 7586b42 commit 21e23eb
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/bucket/BucketList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ onMounted(async () => {
<div class="flex justify-content-end">
<Button
v-if="usePermissionStore().isUserElevatedRights()"
v-tooltip.bottom="'Configure Bucket'"
label="Primary"
class="p-button-outlined mt-4"
data-test="connect-bucket"
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/components/bucket/BucketTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ async function deleteBucket(bucketId: string) {
<template #body="{ data }">
<Button
v-if="permissionStore.isBucketActionAllowed(data.bucketId, getUserId, Permissions.UPDATE)"
v-tooltip.bottom="'Configure bucket'"
class="p-button-lg p-button-text"
aria-label="Configure bucket"
@click="showBucketConfig(data)"
Expand All @@ -134,6 +135,7 @@ async function deleteBucket(bucketId: string) {
</Button>
<Button
v-if="permissionStore.isBucketActionAllowed(data.bucketId, getUserId, Permissions.MANAGE)"
v-tooltip.bottom="'Bucket permissions'"
class="p-button-lg p-button-text"
aria-label="Bucket permissions"
@click="showPermissions(data.bucketId, data.bucketName)"
Expand All @@ -143,6 +145,7 @@ async function deleteBucket(bucketId: string) {
<SyncButton :bucket-id="data.bucketId" />
<Button
v-if="permissionStore.isBucketActionAllowed(data.bucketId, getUserId, Permissions.READ)"
v-tooltip.bottom="'Bucket details'"
class="p-button-lg p-button-rounded p-button-text"
aria-label="Bucket details"
@click="showSidebarInfo(data.bucketId)"
Expand All @@ -151,6 +154,7 @@ async function deleteBucket(bucketId: string) {
</Button>
<Button
v-if="permissionStore.isBucketActionAllowed(data.bucketId, getUserId, Permissions.DELETE)"
v-tooltip.bottom="'Delete bucket'"
class="p-button-lg p-button-text p-button-danger"
aria-label="Delete bucket"
@click="confirmDeleteBucket(data.bucketId)"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/common/SyncButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ const onClick = () => {
</Dialog>

<Button
v-tooltip.bottom="'Synchronize bucket'"
class="p-button-lg p-button-text"
aria-label="Synchronize bucket"
@click="onClick"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/object/DownloadObjectButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const download = () => {

<Button
v-if="props.mode === ButtonMode.ICON"
v-tooltip.bottom="'Download object'"
class="p-button-lg p-button-text"
:disabled="props.disabled"
aria-label="Download object"
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/object/ObjectTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ const filters = ref({
@click="filters['global'].value = null"
/>
</span>

<Button
v-tooltip.bottom="'Refresh'"
class="ml-2"
Expand Down Expand Up @@ -234,6 +235,7 @@ const filters = ref({
v-if="
permissionStore.isObjectActionAllowed(data.id, getUserId, Permissions.MANAGE, props.bucketId as string)
"
v-tooltip.bottom="'Object permissions'"
class="p-button-lg p-button-text"
aria-label="Object permissions"
@click="showPermissions(data.id)"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/object/share/ShareObjectButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ onMounted(() => {
</Dialog>

<Button
v-tooltip.bottom="'Share object'"
class="p-button-lg p-button-text"
aria-label="Share object"
@click="displayShareDialog = true"
Expand Down

0 comments on commit 21e23eb

Please sign in to comment.