Show warning when trying to Identify a metadata-locked item (#8236)

This commit is contained in:
Edmond Abraham
2026-08-26 23:58:19 -04:00
committed by GitHub
parent 92a037a971
commit 51f7fb2fc6
2 changed files with 8 additions and 0 deletions
@@ -329,6 +329,13 @@ function showEditor(itemId) {
const apiClient = getApiClient();
apiClient.getItem(apiClient.getCurrentUserId(), itemId).then(item => {
if (item.LockData) {
loading.hide();
toast(globalize.translate('MessageItemMetadataLocked'));
currentReject();
return;
}
currentItem = item;
currentItemType = currentItem.Type;
+1
View File
@@ -1195,6 +1195,7 @@
"MessageInvalidUser": "Invalid username or password. Please try again.",
"MessageItemsAdded": "Items added.",
"MessageItemSaved": "Item saved.",
"MessageItemMetadataLocked": "This item's metadata is locked. Unlock it before using the identify feature.",
"MessageLeaveEmptyToInherit": "Leave empty to inherit settings from a parent item or the global default value.",
"MessageNoItemsAvailable": "No Items are currently available.",
"MessageNoFavoritesAvailable": "No favorites are currently available.",