Skip to content

Commit

Permalink
chore: auto dismiss add/remove plugin notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Nov 27, 2024
1 parent 22b7912 commit c2c587a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/scripts/rendering/write-add-remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c2c587a

Please sign in to comment.