Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

UI update: #404 persistent value of checkboxes

Vincent1093f7d271ff
diff --git a/ui/component/or-asset-tree/src/or-add-asset-dialog.ts b/ui/component/or-asset-tree/src/or-add-asset-dialog.ts
index a0ce9662c..ad4b97b55 100644
--- a/ui/component/or-asset-tree/src/or-add-asset-dialog.ts
+++ b/ui/component/or-asset-tree/src/or-add-asset-dialog.ts
@@ -11,8 +11,7 @@ import {
OrMwcListChangedEvent
} from "@openremote/or-mwc-components/or-mwc-list";
import {i18next} from "@openremote/or-translate";
-import {AssetModelUtil, DefaultColor2, DefaultColor3, DefaultColor5, Util} from "@openremote/core";
-
+import {AssetModelUtil, DefaultColor3, DefaultColor5, Util} from "@openremote/core";
import {InputType, OrMwcInput, OrInputChangedEvent} from "@openremote/or-mwc-components/or-mwc-input";
export type OrAddAssetDetail = {
@@ -306,7 +305,9 @@ export class OrAddAssetDialog extends LitElement {
this.onModified();
}
- protected onTypeChanged(isAgent: boolean, listItem: ListItem) {
+ protected async onTypeChanged(isAgent: boolean, listItem: ListItem) {
+ await this.requestUpdate();
+
this.selectedType = listItem.data as AssetDescriptor | AgentDescriptor;
// Deselect other list selection
diff --git a/yarn.lock b/yarn.lock
index 91fdc5509..a6689313c 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2114,6 +2114,21 @@
dependencies:
tslib "^1.9.3"
+"@material/radio@^9.0.0":
+ version "9.0.0"
+ resolved "https://registry.yarnpkg.com/@material/radio/-/radio-9.0.0.tgz#66c2ea24de6a81375bee3917999f3392f2ce6a69"
+ integrity sha512-nP1Jf47Hag64qnCPFePnk4x61yhKi4mJrOCCxRqm9gMzDcod+YrXWXQQPdlkSJxIlgrKesH2so0R+fJzzXr2RA==
+ dependencies:
+ "@material/animation" "^9.0.0"
+ "@material/base" "^9.0.0"
+ "@material/density" "^9.0.0"
+ "@material/dom" "^9.0.0"
+ "@material/feature-targeting" "^9.0.0"
+ "@material/ripple" "^9.0.0"
+ "@material/theme" "^9.0.0"
+ "@material/touch-target" "^9.0.0"
+ tslib "^1.9.3"
+
"@material/ripple@^9.0.0":
version "9.0.0"
resolved "https://registry.yarnpkg.com/@material/ripple/-/ripple-9.0.0.tgz#dc7004a40ab7f906569682209b6b340eacd99fbd"