Skip to content

Commit

Permalink
feat: Add tooltips on icons - MEED-7748 - Meeds-io/MIPs#160
Browse files Browse the repository at this point in the history
  • Loading branch information
boubaker authored and exo-swf committed Nov 18, 2024
1 parent 88e1d18 commit aa2d4ca
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,6 @@ social.spaces.administration.manageSpaces.processingSpacesBulkOperation2=Please
social.spaces.administration.manageSpaces.processingSpacesBulkOperation3={0}Do not close this page{1}
social.spaces.administration.manageSpaces.spaceTemplateAppliedOnSpaces=Spaces updated with selected template
social.spaces.administration.manageSpaces.processingSpacesBulkOperationCancelConfirm=Reloading the page will cancel non-processed spaces. Do you confirm cancellation?
social.spaces.administration.manageSpaces.processingSpacesBulkOperation=Processing bulk actions
social.spaces.administration.manageSpaces.successSpacesBulkOperation=Operation finished successfully on space
social.spaces.administration.manageSpaces.errorSpacesBulkOperation=Error while processing the operation
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,16 @@
v-if="space"
:space="space"
class="mb-4" />
<v-card
<v-chip
v-else-if="spaces"
class="border-color full-width d-flex align-center px-4 mb-4"
height="40"
flat>
{{ $t('social.spaces.administration.manageSpaces.selectedSpacesCount', {
0: selectionCount,
}) }}
</v-card>
class="mb-4 light-grey-color"
height="40">
<span>
{{ $t('social.spaces.administration.manageSpaces.selectedSpacesCount', {
0: selectionCount,
}) }}
</span>
</v-chip>
<div class="text-header mb-1">
{{ $t('social.spaces.administration.manageSpaces.selectNewTemplate') }}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,45 @@
<template>
<tr :key="space.id">
<td align="center">
<v-icon
<v-tooltip
v-if="bulkOperationStatus === 'done'"
class="fa-lg success--text my-auto pt-2">
fa-check-circle
</v-icon>
<v-icon
top>
<template #activator="{on, attrs}">
<v-icon
v-on="on"
v-bind="attrs"
class="fa-lg success--text my-auto pt-2">
fa-check-circle
</v-icon>
</template>
<span>{{ $t('social.spaces.administration.manageSpaces.successSpacesBulkOperation') }}</span>
</v-tooltip>
<v-tooltip
v-else-if="bulkOperationStatus === 'error'"
class="fa-lg error--text my-auto pt-2">
fa-exclamation-circle
</v-icon>
<v-icon
top>
<template #activator="{on, attrs}">
<v-icon
v-on="on"
v-bind="attrs"
class="fa-lg error--text my-auto pt-2">
fa-exclamation-circle
</v-icon>
</template>
<span>{{ $t('social.spaces.administration.manageSpaces.errorSpacesBulkOperation') }}</span>
</v-tooltip>
<v-tooltip
v-else-if="bulkOperationStatus === 'processing'"
class="fa-lg primary--text my-auto pt-2">
fa-spinner
</v-icon>
top>
<template #activator="{on, attrs}">
<v-icon
v-on="on"
v-bind="attrs"
class="fa-lg primary--text my-auto pt-2">
fa-spinner
</v-icon>
</template>
<span>{{ $t('social.spaces.administration.manageSpaces.processingSpacesBulkOperation') }}</span>
</v-tooltip>
<v-checkbox
v-else
:value="selected || $root.allSpacesSelected"
Expand Down

0 comments on commit aa2d4ca

Please sign in to comment.