mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
373: void Notification.error
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
2549c16402
commit
8a4496207f
@ -356,7 +356,7 @@ export async function attemptInstallByInfo({ name, version, requireConfirmation
|
|||||||
return attemptInstall({ fileName, dataP }, disposer);
|
return attemptInstall({ fileName, dataP }, disposer);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function attemptInstall(request: InstallRequest, d?: ExtendableDisposer): Promise<void | (() => void)> {
|
async function attemptInstall(request: InstallRequest, d?: ExtendableDisposer): Promise<void> {
|
||||||
const dispose = disposer(ExtensionInstallationStateStore.startPreInstall(), d);
|
const dispose = disposer(ExtensionInstallationStateStore.startPreInstall(), d);
|
||||||
const validatedRequest = await createTempFilesAndValidate(request);
|
const validatedRequest = await createTempFilesAndValidate(request);
|
||||||
|
|
||||||
@ -370,7 +370,7 @@ async function attemptInstall(request: InstallRequest, d?: ExtendableDisposer):
|
|||||||
if (curState !== ExtensionInstallationState.IDLE) {
|
if (curState !== ExtensionInstallationState.IDLE) {
|
||||||
dispose();
|
dispose();
|
||||||
|
|
||||||
return Notifications.error(
|
return void Notifications.error(
|
||||||
<div className="flex column gaps">
|
<div className="flex column gaps">
|
||||||
<b>Extension Install Collision:</b>
|
<b>Extension Install Collision:</b>
|
||||||
<p>The <em>{name}</em> extension is currently {curState.toLowerCase()}.</p>
|
<p>The <em>{name}</em> extension is currently {curState.toLowerCase()}.</p>
|
||||||
@ -416,7 +416,7 @@ async function attemptInstall(request: InstallRequest, d?: ExtendableDisposer):
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function attemptInstalls(filePaths: string[]): Promise<void> {
|
async function attemptInstalls(filePaths: string[]): Promise<void> {
|
||||||
const promises: Promise<any>[] = [];
|
const promises: Promise<void>[] = [];
|
||||||
|
|
||||||
for (const filePath of filePaths) {
|
for (const filePath of filePaths) {
|
||||||
promises.push(attemptInstall({
|
promises.push(attemptInstall({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user