Changeset - 2aeceb6f03aa
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 20 months ago 2023-06-02 16:42:48
drewp@bigasterisk.com
edit-choice defaults to no 'rename' button
2 files changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
light9/live/Light9DeviceSettings.ts
Show inline comments
 
@@ -49,7 +49,7 @@ export class Light9DeviceSettings extend
 
      <div id="save">
 
        <div>
 
          <button @click=${this.newEffect}>New effect</button>
 
          <edit-choice .uri=${this.currentEffect ? this.currentEffect.uri : null} @edited=${this.onEffectChoice2}></edit-choice>
 
          <edit-choice .uri=${this.currentEffect ? this.currentEffect.uri : null} @edited=${this.onEffectChoice2} rename></edit-choice>
 
          <button @click=${this.clearAll}>clear settings in this effect</button>
 
        </div>
 
      </div>
light9/web/EditChoice.ts
Show inline comments
 
@@ -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
 
    <button @click=${this.unlink}>Unlink</button>
 
    `
 
    return html`
 
      <resource-display .uri=${this.uri} rename></resource-display>
 
      <resource-display .uri=${this.uri} ?rename=${this.rename}></resource-display>
 
      ${this.nounlink ? html`` : unlink}
 
    `;
 
  }
0 comments (0 inline, 0 general)