Changeset - 3f0b889c8fa9
[Not reviewed]
default
0 3 0
drewp@bigasterisk.com - 20 months ago 2023-05-31 20:50:13
drewp@bigasterisk.com
don't let phone users click on song uris by mistake
3 files changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
light9/ascoltami/Light9AscoltamiUi.ts
Show inline comments
 
@@ -126,7 +126,7 @@ export class Light9AscoltamiUi extends L
 
                      playing: !!(this.song && song.equals(this.song)),
 
                    })}"
 
                  >
 
                    <td><resource-display .uri=${song}></resource-display></td>
 
                    <td><resource-display .uri=${song} noclick></resource-display></td>
 
                    <td>
 
                      <button @click=${this.onSelectSong.bind(this, song)}>
 
                        <span>Select</span>
light9/ascoltami/index.html
Show inline comments
 
@@ -42,7 +42,7 @@
 
    </style>
 
    <meta
 
      name="viewport"
 
      content="user-scalable=no, width=500, initial-scale=1"
 
      content="user-scalable=no, width=device-width, initial-scale=.7"
 
    />
 
    <script type="module" src="../ascoltami/Light9AscoltamiUi"></script>
 
  </head>
light9/web/ResourceDisplay.ts
Show inline comments
 
@@ -77,6 +77,7 @@ export class ResourceDisplay extends Lit
 
  @state() renameTo = "";
 

	
 
  @property({ type: Boolean }) rename: boolean = false;
 
  @property({ type: Boolean }) noclick: boolean = false;
 
  @property({ type: Boolean }) minor: boolean = false;
 

	
 
  constructor() {
 
@@ -112,7 +113,7 @@ export class ResourceDisplay extends Lit
 
  }
 

	
 
  private href(): string {
 
    if (!this.uri) {
 
    if (!this.uri || this.noclick) {
 
      return "javascript:;";
 
    }
 
    return this.uri.value;
0 comments (0 inline, 0 general)