mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Treat default weblinks same as any other weblinks (#3385)
- Use seenWeblink and check for non-arrays - Spread out link validation Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
0204eef848
commit
da53aa0d79
6 files changed
+132
-55
No files matched your search
@@ -24,8 +24,10 @@ import { catalogCategoryRegistry } from "../catalog/catalog-category-registry";
|
||||
import { productName } from "../vars";
|
||||
import { WeblinkStore } from "../weblink-store";
|
||||
|
||||
export type WebLinkStatusPhase = "available" | "unavailable";
|
||||
|
||||
export interface WebLinkStatus extends CatalogEntityStatus {
|
||||
phase: "available" | "unavailable";
|
||||
phase: WebLinkStatusPhase;
|
||||
}
|
||||
|
||||
export type WebLinkSpec = {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
import { action, comparer, observable, makeObservable } from "mobx";
|
||||
import { BaseStore } from "./base-store";
|
||||
import migrations from "../migrations/hotbar-store";
|
||||
import migrations from "../migrations/weblinks-store";
|
||||
import * as uuid from "uuid";
|
||||
import { toJS } from "./utils";
|
||||
|
||||
|
||||
Reference in new issue
Block a user