# HG changeset patch
# User drewp@bigasterisk.com
# Date 2023-06-02 16:42:48
# Node ID 2aeceb6f03aa9fde5a709e7b833b6e03d1e57b93
# Parent b09ff4b0094cf87e2b11fa9c14d9158ccc7cbbd2
edit-choice defaults to no 'rename' button
diff --git a/light9/live/Light9DeviceSettings.ts b/light9/live/Light9DeviceSettings.ts
--- a/light9/live/Light9DeviceSettings.ts
+++ b/light9/live/Light9DeviceSettings.ts
@@ -49,7 +49,7 @@ export class Light9DeviceSettings extend
-
+
diff --git a/light9/web/EditChoice.ts b/light9/web/EditChoice.ts
--- a/light9/web/EditChoice.ts
+++ b/light9/web/EditChoice.ts
@@ -63,12 +63,13 @@ function setupDrop(
export class EditChoice extends LitElement {
@property() uri?: NamedNode
@property({ type: Boolean }) nounlink = false;
+ @property({ type: Boolean }) rename = false;
static styles = [
css`
:host {
display: inline-block;
background: #141448;
- min-width: 10em;
+ /* min-width: 10em; */
padding: 3px 8px;
}
.dragging {
@@ -88,7 +89,7 @@ export class EditChoice extends LitEleme
`
return html`
-
+
${this.nounlink ? html`` : unlink}
`;
}