diff options
author | 2022-09-25 16:36:04 +0700 | |
---|---|---|
committer | 2022-09-25 16:36:04 +0700 | |
commit | da89c8ee20aa2d9ce8ac4fb5fc7225265539a8ab (patch) | |
tree | cd3ed5eea516a54ffbae7caf64095f8b00bd52d9 /source/features/quick-repo-deletion.tsx | |
parent | 74785717376b427ad7177e5783af145cd0f8d861 (diff) | |
download | refined-github-da89c8ee20aa2d9ce8ac4fb5fc7225265539a8ab.tar.gz refined-github-da89c8ee20aa2d9ce8ac4fb5fc7225265539a8ab.tar.zst refined-github-da89c8ee20aa2d9ce8ac4fb5fc7225265539a8ab.zip |
Warp speed 🚀 (#6006)
Diffstat (limited to 'source/features/quick-repo-deletion.tsx')
-rw-r--r-- | source/features/quick-repo-deletion.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/features/quick-repo-deletion.tsx b/source/features/quick-repo-deletion.tsx index 76263f11..e0f318a3 100644 --- a/source/features/quick-repo-deletion.tsx +++ b/source/features/quick-repo-deletion.tsx @@ -45,7 +45,7 @@ async function verifyScopesWhileWaiting(abortController: AbortController): Promi } catch (error) { assertError(error); abortController.abort(); - addNotice([ + await addNotice([ 'Could not delete the repository. ', parseBackticks(error.message), ], { @@ -101,7 +101,7 @@ async function start(buttonContainer: HTMLDetailsElement): Promise<void> { } catch (error) { assertError(error); buttonContainer.closest('li')!.remove(); // Remove button - addNotice([ + await addNotice([ 'Could not delete the repository. ', (error as api.RefinedGitHubAPIError).response?.message ?? error.message, ], { @@ -116,7 +116,7 @@ async function start(buttonContainer: HTMLDetailsElement): Promise<void> { ? `/organizations/${owner}/settings/deleted_repositories` : '/settings/deleted_repositories'; const otherForksURL = `/${owner}?tab=repositories&type=fork`; - addNotice( + await addNotice( <><TrashIcon/> <span>Repository <strong>{nameWithOwner}</strong> deleted. <a href={restoreURL}>Restore it</a>, <a href={forkSource}>visit the source repo</a>, or see <a href={otherForksURL}>your other forks.</a></span></>, {action: false}, ); |