diff web/metrics/ServiceButtonRow.ts @ 2400:9a4bc2ea264e

ui tweaks and link fix
author drewp@bigasterisk.com
date Fri, 17 May 2024 13:25:46 -0700
parents 4556eebe5d73
children
line wrap: on
line diff
--- a/web/metrics/ServiceButtonRow.ts	Thu May 16 16:15:33 2024 -0700
+++ b/web/metrics/ServiceButtonRow.ts	Fri May 17 13:25:46 2024 -0700
@@ -5,7 +5,7 @@
 @customElement("service-button-row")
 export class ServiceButtonRow extends LitElement {
   @property() name: string = "?";
-  @property({ type:Boolean, attribute: "metrics" }) hasMetrics: boolean = false;
+  @property({ type: Boolean, attribute: "metrics" }) hasMetrics: boolean = false;
   static styles = [
     css`
       :host {
@@ -57,10 +57,10 @@
       </div>
 
       ${this.hasMetrics ? html`<div id="stats"><stats-line name="${this.name}"></div>` : ""}
-      `;
+    `;
   }
 
   click() {
-    window.open(this.name + "/", "_blank", "scrollbars=1,resizable=1,titlebar=0,location=0");
+    window.open("/" + this.name + "/", "_blank", "scrollbars=1,resizable=1,titlebar=0,location=0");
   }
 }