Changeset - e9caffe926df
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 20 months ago 2023-06-02 01:30:25
drewp@bigasterisk.com
attribute 'nounlink' to save space
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/web/EditChoice.ts
Show inline comments
 
@@ -62,6 +62,7 @@ function setupDrop(
 
@customElement("edit-choice")
 
export class EditChoice extends LitElement {
 
  @property() uri?: NamedNode
 
  @property({ type: Boolean }) nounlink = false;
 
  static styles = [
 
    css`
 
      :host {
 
@@ -83,9 +84,12 @@ export class EditChoice extends LitEleme
 
    `,
 
  ];
 
  render() {
 
    const unlink = html`
 
    <button @click=${this.unlink}>Unlink</button>
 
    `
 
    return html`
 
      <resource-display .uri=${this.uri} rename></resource-display>
 
      <button @click=${this.unlink}>Unlink</button>
 
      ${this.nounlink ? html`` : unlink}
 
    `;
 
  }
 

	
0 comments (0 inline, 0 general)