Skip to content

armgit / core

Public Imported from GitHub
0

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

UI updates: Fixes #488

Rich Turner6ce36639a643
diff --git a/ui/app/manager/src/pages/page-assets.ts b/ui/app/manager/src/pages/page-assets.ts
index e01f5d573..b077e846d 100644
--- a/ui/app/manager/src/pages/page-assets.ts
+++ b/ui/app/manager/src/pages/page-assets.ts
@@ -169,9 +169,9 @@ class PageAssets<S extends AppStateKeyed> extends Page<S> {
stateChanged(state: S) {
// State is only utilised for initial loading
+ this.getRealmState(state); // Order is important here!
this._editMode = !!(state.app.params && state.app.params.editMode === "true");
this._assetIds = state.app.params && state.app.params.id ? [state.app.params.id as string] : undefined;
- this.getRealmState(state);
}
protected _onAssetSelectionRequested(event: OrAssetTreeRequestSelectionEvent) {
diff --git a/ui/component/or-mwc-components/src/or-mwc-input.ts b/ui/component/or-mwc-components/src/or-mwc-input.ts
index b8b289508..6787ee168 100644
--- a/ui/component/or-mwc-components/src/or-mwc-input.ts
+++ b/ui/component/or-mwc-components/src/or-mwc-input.ts
@@ -1411,7 +1411,7 @@ export class OrMwcInput extends LitElement {
checkbox.disabled = this.disabled || this.readonly;
}
- (this._mdcComponent as any).required = this.required;
+ (this._mdcComponent as any).required = !!this.required;
}
if (this.autoValidate) {