Changeset - 4031e511bca9
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 20 months ago 2023-05-30 08:00:32
drewp@bigasterisk.com
resource-display uri can no longer be a string
2 files changed with 4 insertions and 5 deletions:
0 comments (0 inline, 0 general)
light9/web/EditChoice.ts
Show inline comments
 
@@ -61,7 +61,7 @@ function setupDrop(
 
// an <resource-display> or <a href> tag)
 
@customElement("edit-choice")
 
export class EditChoice extends LitElement {
 
  @property() uri: NamedNode | null = null;
 
  @property() uri?: NamedNode
 
  static styles = [
 
    css`
 
      :host {
 
@@ -102,12 +102,12 @@ export class EditChoice extends LitEleme
 
  //   }
 
  // }
 

	
 
  _setUri(u: any) {
 
  _setUri(u?: NamedNode) {
 
    this.uri = u;
 
    this.dispatchEvent(new CustomEvent("edited", {detail: {newValue: u}}));
 
  }
 

	
 
  unlink() {
 
    return this._setUri(null);
 
    return this._setUri(undefined);
 
  }
 
}
light9/web/ResourceDisplay.ts
Show inline comments
 
@@ -72,8 +72,7 @@ export class ResourceDisplay extends Lit
 
    // </template>
 
    //    `;
 
  }
 
  // callers might set this as string or pass a NamedNode.
 
  @property() uri?: NamedNode | string;
 
  @property() uri?: NamedNode;
 

	
 
  @state() label: string = "";
 
  
0 comments (0 inline, 0 general)