Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Fix toast notification for uploading extension shows ID #5844

Merged
merged 1 commit into from
Jun 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"extensionImportPageTitle": "$t(extension.ImportExtension)",
"extensionsPageDescription": "<p>Extensions provide custom features for use in integrations. Find out more at <a href=$t(shared:links.userguide) target=\"_blank\">$t(shared:project.name) Help</a>.</p>",
"extensionsPageTitle": "$t(shared:Extensions)",
"extensionUploadSuccessMessage": "\"{{extensionName}}\" was successfully uploaded",
"idMessage": "(ID: {{id}})",
"importDndInstructions": "Drag and drop <strong>one</strong> file here, or <strong>click</strong> to select the file by using a file chooser dialog.",
"ImportExtension": "$t(shared:Import) $t(shared:Extension)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"extensionImportPageTitle": "$t(extension.ImportExtension)",
"extensionsPageDescription": "<p>Le estensioni forniscono funzionalità personalizzate da utilizzare nelle integrazioni. Scopri di più su <a href=$t(shared:links.userguide) target=\"_blank\">$t(shared:project.name) Aiuto</a></p>.",
"extensionsPageTitle": "$t(shared:Extensions)",
"extensionUploadSuccessMessage": "\"{{extensionName}}\" è stato caricato con successo",
"idMessage": "(ID: {{id}})",
"importDndInstructions": "Trascina qui <strong>uno</strong> file o <strong>fai clic </strong> per selezionare un file utilizzando una finestra di dialogo di selezione file.",
"ImportExtension": "$t(shared:Extension) di $t(shared:Import)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ export default class ExtensionImportPage extends React.Component<
: await uploadExtension(files[0]);

pushNotification(
`${uploaded.id} was uploaded`,
i18n.t('extensions:extension.extensionUploadSuccessMessage', {
extensionName: uploaded.name,
}),
'success'
);

Expand Down