mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Cherry-Pick from v4.2.4 (#2701)
Co-authored-by: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com>
This commit is contained in:
parent
3a3edeea08
commit
0771fd5be5
@ -167,15 +167,13 @@ async function validatePackage(filePath: string): Promise<LensExtensionManifest>
|
||||
return manifest;
|
||||
}
|
||||
|
||||
async function createTempFilesAndValidate({ fileName, dataP }: InstallRequest, disposer: ExtendableDisposer): Promise<InstallRequestValidated | null> {
|
||||
async function createTempFilesAndValidate({ fileName, dataP }: InstallRequest): Promise<InstallRequestValidated | null> {
|
||||
// copy files to temp
|
||||
await fse.ensureDir(getExtensionPackageTemp());
|
||||
|
||||
// validate packages
|
||||
const tempFile = getExtensionPackageTemp(fileName);
|
||||
|
||||
disposer.push(() => fse.unlink(tempFile));
|
||||
|
||||
try {
|
||||
const data = await dataP;
|
||||
|
||||
@ -318,7 +316,7 @@ export async function attemptInstallByInfo({ name, version, requireConfirmation
|
||||
|
||||
async function attemptInstall(request: InstallRequest, d?: ExtendableDisposer): Promise<void> {
|
||||
const dispose = disposer(ExtensionInstallationStateStore.startPreInstall(), d);
|
||||
const validatedRequest = await createTempFilesAndValidate(request, dispose);
|
||||
const validatedRequest = await createTempFilesAndValidate(request);
|
||||
|
||||
if (!validatedRequest) {
|
||||
return dispose();
|
||||
|
||||
@ -106,7 +106,7 @@ html {
|
||||
&--is-disabled {
|
||||
cursor: not-allowed;
|
||||
background: none !important;
|
||||
color: $contentColor;
|
||||
color: inherit;
|
||||
opacity: .75;
|
||||
}
|
||||
|
||||
@ -166,6 +166,10 @@ html {
|
||||
&--is-focused {
|
||||
color: white;
|
||||
}
|
||||
|
||||
&--is-disabled:hover {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user