From c2c587a165b6983fcebf125d7cbc52faf60c677e Mon Sep 17 00:00:00 2001 From: Keyrxng <106303466+Keyrxng@users.noreply.github.com> Date: Wed, 27 Nov 2024 17:57:16 +0000 Subject: [PATCH] chore: auto dismiss add/remove plugin notification --- static/scripts/rendering/write-add-remove.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/scripts/rendering/write-add-remove.ts b/static/scripts/rendering/write-add-remove.ts index b338a6c..abfd3ca 100644 --- a/static/scripts/rendering/write-add-remove.ts +++ b/static/scripts/rendering/write-add-remove.ts @@ -80,6 +80,7 @@ function handleAddPlugin(renderer: ManifestRenderer, plugin: Plugin, pluginManif toastNotification(`Configuration for ${pluginManifest.name} saved successfully. Do you want to push to GitHub?`, { type: "success", actionText: "Push to GitHub", + shouldAutoDismiss: true, action: async () => { const octokit = renderer.auth.octokit; if (!octokit) { @@ -116,6 +117,7 @@ function handleRemovePlugin(renderer: ManifestRenderer, plugin: Plugin, pluginMa toastNotification(`Configuration for ${pluginManifest.name} removed successfully. Do you want to push to GitHub?`, { type: "success", actionText: "Push to GitHub", + shouldAutoDismiss: true, action: async () => { const octokit = renderer.auth.octokit; if (!octokit) {