mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove ExtenedMap, ToggleSet, and observable versions (#3310)
- Switch to helper functions instead. They don't impact the prototype tree and it means that we don't need to introduce versions that are both observable and "normal" - Tidy <ItemListLayout> and hiddenTableColumns to not need pre-initialization Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
ed91ef2d03
commit
8088d3b5c2
10 files changed
+58
-105
No files matched your search
@@ -6,21 +6,15 @@
|
||||
import React from "react";
|
||||
import { kubernetesClusterCategory } from "../../common/catalog-entities";
|
||||
import { addClusterURL, kubernetesURL } from "../../common/routes";
|
||||
import { multiSet } from "../utils";
|
||||
import { UserStore } from "../../common/user-store";
|
||||
import { getAllEntries } from "../components/+preferences/kubeconfig-syncs";
|
||||
import { runInAction } from "mobx";
|
||||
import { isLinux, isWindows } from "../../common/vars";
|
||||
import { PathPicker } from "../components/path-picker";
|
||||
import { Notifications } from "../components/notifications";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
async function addSyncEntries(filePaths: string[]) {
|
||||
const entries = await getAllEntries(filePaths);
|
||||
|
||||
runInAction(() => {
|
||||
multiSet(UserStore.getInstance().syncKubeconfigEntries, entries);
|
||||
});
|
||||
UserStore.getInstance().syncKubeconfigEntries.merge(await getAllEntries(filePaths));
|
||||
|
||||
Notifications.ok(
|
||||
<div>
|
||||
|
||||
Reference in new issue
Block a user