changeset 2292:0a11698fecc4

look who just read https://lit.dev/docs/components/properties/#boolean-attributes
author drewp@bigasterisk.com
date Mon, 29 May 2023 23:37:08 -0700
parents 1281b4677862
children c070f46c0761
files light9/homepage/ServiceButtonRow.ts light9/web/ResourceDisplay.ts
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/light9/homepage/ServiceButtonRow.ts	Mon May 29 23:08:55 2023 -0700
+++ b/light9/homepage/ServiceButtonRow.ts	Mon May 29 23:37:08 2023 -0700
@@ -5,7 +5,7 @@
 @customElement("service-button-row")
 export class ServiceButtonRow extends LitElement {
   @property() name: string = "?";
-  @property({ attribute: "metrics" }) hasMetrics: boolean = false;
+  @property({ type:Boolean, attribute: "metrics" }) hasMetrics: boolean = false;
   static styles = [
     css`
       :host {
--- a/light9/web/ResourceDisplay.ts	Mon May 29 23:08:55 2023 -0700
+++ b/light9/web/ResourceDisplay.ts	Mon May 29 23:37:08 2023 -0700
@@ -76,8 +76,9 @@
   @property() uri?: NamedNode | string;
 
   @state() label: string = "";
-  @property() rename: boolean = false;
-  @property() minor: boolean = false;
+  
+  @property({type: Boolean}) rename: boolean = false;
+  @property({type: Boolean}) minor: boolean = false;
   // @state() renameTo: String; notify: true };
 
   constructor() {