Add tool tip to disabled delete button when user does not have permissions to delete items on issues tab

This commit is contained in:
liam 2025-10-12 15:11:05 -04:00
parent feed827223
commit 41a498e8d2
2 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,9 @@
<!-- issues page remove all button -->
<ui-btn v-if="isIssuesFilter && userCanDelete && !isBatchSelecting" :loading="processingIssues" color="bg-error" small class="ml-4" @click="removeAllIssues">{{ $strings.ButtonRemoveAll }} {{ $formatNumber(numShowing) }} {{ entityName }}</ui-btn>
<!-- issues page remove all button user does not have permissions to delete -->
<ui-btn v-if="isIssuesFilter && !userCanDelete && !isBatchSelecting" :title="$strings.ButtonRemoveAllInsufficientPermissions" color="bg-error" small class="ml-4" disabled>{{ $strings.ButtonRemoveAll }} {{ $formatNumber(numShowing) }} {{ entityName }}</ui-btn>
<ui-context-menu-dropdown v-if="contextMenuItems.length" :items="contextMenuItems" :menu-width="110" class="ml-2" @action="contextMenuAction" />
</template>
<!-- search page -->

View File

@ -80,6 +80,7 @@
"ButtonRefresh": "Refresh",
"ButtonRemove": "Remove",
"ButtonRemoveAll": "Remove All",
"ButtonRemoveAllInsufficientPermissions": "User has insufficient permissions to remove items.",
"ButtonRemoveAllLibraryItems": "Remove All Library Items",
"ButtonRemoveFromContinueListening": "Remove from Continue Listening",
"ButtonRemoveFromContinueReading": "Remove from Continue Reading",