1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/common
Sebastian Malton d72158cc63
Fix local cluster delete flow (#3473)
* Fix local cluster delete flow

- Now checks for the cluster being the current cluster and confirms the
  action

- <ConfirmDialog> is fixed to work with several confirmations happinging
  at once

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Custom delete cluster dialog

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Saving kubeconfig file refactoring

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Switching current-context from dialog

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Cleaning up css styles

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Show Delete menu item only for local cluster

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Make all dialogs rounded

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Releasing kubeconfig file after lock

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adding delete cluster dialog tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Cleaning up

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Delete cluster dialog refactoring

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fixing typo

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Removing temp file on error

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Updating tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Do not switch context if select is hidden

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Removing spread symbols

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Moving cluster delete event from catalog initializer to ipc

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Refactor warning messages

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Getting spread (...) back to fix Select render

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Using async form without promises

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Do not show context switcher if no contexts left

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Updating the tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* don't allow delete of the active cluster before setting to new active cluster (#3749)

* don't allow user to delete the active cluster before setting to new active cluster

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* fix lint issues

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* Show delete button if no more contexts available

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
Co-authored-by: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com>
2021-09-08 15:06:14 +03:00
..
__tests__ Upgrade to electron 12 and Node 14 (#3572) 2021-08-26 12:13:31 -04:00
catalog TopBar home icon (#3740) 2021-09-07 15:18:46 +03:00
catalog-entities Fix local cluster delete flow (#3473) 2021-09-08 15:06:14 +03:00
ipc Make ipc.boradcast not stopping at uncaught exceptions, improve typing, improve error logs (#3717) 2021-09-02 13:20:18 +03:00
k8s Turn on noUnusedLocals, noImplicitReturns, importsNotUsedAsValues: error, and isolatedModules (#2777) 2021-05-19 12:11:54 -04:00
k8s-api Fix filtering deprecated charts (#3635) 2021-08-24 08:29:36 -04:00
logger-transports Add back sentry winston logger transport (#3602) 2021-08-12 11:01:39 -04:00
protocol-handler Track extension provisions and check bundled for routing (#3187) 2021-06-25 13:28:07 -04:00
routes Replace Ace Editor with monaco (#2949) 2021-08-12 13:00:52 +03:00
user-store Upgrade to electron 12 and Node 14 (#3572) 2021-08-26 12:13:31 -04:00
utils Support filtering catalog entities (#3647) 2021-08-31 16:00:56 +03:00
.gitkeep Lens app source code (#119) 2020-03-15 09:52:02 +02:00
base-store.ts Upgrade to electron 12 and Node 14 (#3572) 2021-08-26 12:13:31 -04:00
cluster-frames.ts Send LensMainExtension.nagivate calls to renderer before navigating (#3082) 2021-06-17 12:59:27 +03:00
cluster-ipc.ts Fix local cluster delete flow (#3473) 2021-09-08 15:06:14 +03:00
cluster-store.ts Move cluster related types and function into seperate files (#3530) 2021-08-03 10:36:14 -04:00
cluster-types.ts Allow to configure default namespace used in terminal (#3706) 2021-09-01 12:50:11 +03:00
configure-packages.ts Mobx-6 migration (#2718) 2021-05-25 10:24:31 +03:00
custom-errors.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
event-bus.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
event-emitter.ts Cleanup <EventEmitter> (#3338) 2021-07-20 08:39:44 -04:00
getTSLoader.ts Add esbuild/esbuild-loader to reduce memory usage when make dev (#3220) 2021-06-30 08:05:02 -04:00
hotbar-store.ts Make sure that there are only ever 12 slots in a hotbar (#3379) 2021-08-04 10:37:08 +03:00
hotbar-types.ts Move Hotbar types to seperate file (#3532) 2021-08-03 14:38:36 -04:00
item.store.ts Refactor k8s api to common (#3553) 2021-08-10 13:26:14 +03:00
kube-helpers.ts Simplify add cluster view (#2716) 2021-06-07 08:14:43 -04:00
logger.ts Upgrade to electron 12 and Node 14 (#3572) 2021-08-26 12:13:31 -04:00
rbac.ts Remove circular dependency with isAllowedResource function (#3545) 2021-08-04 16:01:47 -04:00
register-protocol.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
request.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
search-store.ts Mobx-6 migration (#2718) 2021-05-25 10:24:31 +03:00
sentry.ts Add new SentryTransport to winston (#3432) 2021-08-03 08:38:23 -04:00
system-ca.ts Remove win-ca/pem before publish & catch inject error (#3362) 2021-07-13 11:40:52 -04:00
vars.ts Upgrade to electron 12 and Node 14 (#3572) 2021-08-26 12:13:31 -04:00
weblink-store.ts Treat default weblinks same as any other weblinks (#3385) 2021-07-22 20:28:01 -04:00