Add confirmation dialog to extension uninstall (#1547)

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti authored and GitHub committed 2020-11-27 12:52:34 +02:00
1 parent 168385385b
commit 77c8617b79
4 files changed
+63 -14

No files matched your search

@@ -7,8 +7,6 @@ import { workspaceStore } from "../workspace-store";
const testDataIcon = fs.readFileSync("test-data/cluster-store-migration-icon.png");
console.log(""); // fix bug
let clusterStore: ClusterStore;
describe("empty config", () => {
+2 -1
View File
@@ -4,9 +4,10 @@
export function defineGlobal(propName: string, descriptor: PropertyDescriptor) {
const scope = typeof global !== "undefined" ? global : window;
if (scope.hasOwnProperty(propName)) {
console.info(`Global variable "${propName}" already exists. Skipping.`);
return;
}
Object.defineProperty(scope, propName, descriptor);
}