Skip to content

Commit f4e414c

Browse files
authored
fix(structure): passing from operation context to label for success toast (#7437)
1 parent 35b6600 commit f4e414c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/sanity/src/structure/i18n/resources.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,7 @@ const structureLocaleStrings = defineLocalesResources('structure', {
349349
'panes.document-operation-results.operation-error_unpublish':
350350
'An error occurred while attempting to unpublish this document. This usually means that there are other documents that refers to it.',
351351
/** The text when a generic operation succeeded (fallback, generally not shown) */
352-
'panes.document-operation-results.operation-success':
353-
'Successfully performed {{context}} on document',
352+
'panes.document-operation-results.operation-success': 'Successfully performed {{op}} on document',
354353
/** The text when copy URL operation succeeded */
355354
'panes.document-operation-results.operation-success_copy-url': 'Document URL copied to clipboard',
356355
/** The text when a delete operation succeeded */

packages/sanity/src/structure/panes/document/DocumentOperationResults.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export const DocumentOperationResults = memo(function DocumentOperationResults()
5353
i18nKey="panes.document-operation-results.operation-success"
5454
t={t}
5555
values={{
56+
op: event.op,
5657
title: documentTitle,
5758
}}
5859
components={{

0 commit comments

Comments
 (0)