# HG changeset patch
# User drewp@bigasterisk.com
# Date 1685669425 25200
# Node ID e9caffe926df0bcc3298df4f4e3393e2db13beb5
# Parent 81b48e21ba46cceab9a1f5287843fc3ac34eb795
attribute 'nounlink' to save space
diff -r 81b48e21ba46 -r e9caffe926df light9/web/EditChoice.ts
--- a/light9/web/EditChoice.ts Thu Jun 01 14:47:35 2023 -0700
+++ b/light9/web/EditChoice.ts Thu Jun 01 18:30:25 2023 -0700
@@ -62,6 +62,7 @@
@customElement("edit-choice")
export class EditChoice extends LitElement {
@property() uri?: NamedNode
+ @property({ type: Boolean }) nounlink = false;
static styles = [
css`
:host {
@@ -83,9 +84,12 @@
`,
];
render() {
+ const unlink = html`
+
+ `
return html`
-
+ ${this.nounlink ? html`` : unlink}
`;
}