diff --git a/frontend/src/ts/popups/edit-preset-popup.ts b/frontend/src/ts/popups/edit-preset-popup.ts index 9ae696e28..3ba641410 100644 --- a/frontend/src/ts/popups/edit-preset-popup.ts +++ b/frontend/src/ts/popups/edit-preset-popup.ts @@ -94,7 +94,11 @@ async function apply(): Promise { const response = await Ape.presets.add(presetName, configChanges); if (response.status !== 200) { - Notifications.add("Failed to add preset: " + response.message, -1); + Notifications.add( + "Failed to add preset: " + + response.message.replace(presetName, propPresetName), + -1 + ); } else { Notifications.add("Preset added", 1, 2); snapshotPresets.push({ diff --git a/frontend/src/ts/popups/edit-tags-popup.ts b/frontend/src/ts/popups/edit-tags-popup.ts index bd0bad635..a245e90c7 100644 --- a/frontend/src/ts/popups/edit-tags-popup.ts +++ b/frontend/src/ts/popups/edit-tags-popup.ts @@ -77,7 +77,10 @@ async function apply(): Promise { const response = await Ape.users.createTag(tagName); if (response.status !== 200) { - Notifications.add("Failed to add tag: " + response.message, -1); + Notifications.add( + "Failed to add tag: " + response.message.replace(tagName, propTagName), + -1 + ); } else { Notifications.add("Tag added", 1); DB.getSnapshot().tags?.push({