Skip to content

Commit b0db564

Browse files
fix: issue 20810 Line 1 is written in the tooltip of the edit button in Bulk Publish (strapi#21715)
* fix: issue 20810 Line 1, line 2, line 3 is written in the tooltip of the edit button in Bulk Publish ref : strapi#20810 * fix: fix bug 20810 tooltip text change to Edit Ref : strapi#20810 * fix: updated message ID * fix: added new key for message
1 parent ea6e3b8 commit b0db564

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

packages/core/content-manager/admin/src/pages/ListView/components/BulkActions/PublishAction.tsx

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -248,18 +248,10 @@ const SelectedEntriesTableContent = ({
248248
search: row.locale && `?plugins[i18n][locale]=${row.locale}`,
249249
}}
250250
state={{ from: pathname }}
251-
label={formatMessage(
252-
{ id: 'app.component.HelperPluginTable.edit', defaultMessage: 'Edit {target}' },
253-
{
254-
target: formatMessage(
255-
{
256-
id: 'content-manager.components.ListViewHelperPluginTable.row-line',
257-
defaultMessage: 'item line {number}',
258-
},
259-
{ number: index + 1 }
260-
),
261-
}
262-
)}
251+
label={formatMessage({
252+
id: 'content-manager.bulk-publish.edit',
253+
defaultMessage: 'Edit',
254+
})}
263255
target="_blank"
264256
marginLeft="auto"
265257
variant="ghost"

packages/core/content-manager/admin/src/translations/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,5 +288,6 @@
288288
"history.restore.success.title": "Version restored.",
289289
"history.restore.success.message": "The content of the restored version is not published yet.",
290290
"history.restore.error.message": "Could not restore version.",
291-
"validation.error": "There are validation errors in your document. Please fix them before saving."
291+
"validation.error": "There are validation errors in your document. Please fix them before saving.",
292+
"bulk-publish.edit": "Edit"
292293
}

0 commit comments

Comments
 (0)