1
1
import { RouterLocation } from "@vaadin/router" ;
2
2
import { html , LitElement , TemplateResult } from "lit" ;
3
3
import { customElement , state } from "lit/decorators.js" ;
4
- import { ifDefined } from "lit/directives/if-defined.js" ;
5
4
import { ChordSheet } from "../models/interfaces" ;
6
5
import { ChordService } from "../services/chord-service" ;
7
6
import { repeat } from "lit/directives/repeat.js" ;
@@ -14,6 +13,7 @@ import { bootstrapGridStyles } from "../common/bootstrap-grid.styles";
14
13
import { sharedStyles } from "../common/shared.styles" ;
15
14
import "@shoelace-style/shoelace/dist/components/card/card.js" ;
16
15
import "@shoelace-style/shoelace/dist/components/button/button.js" ;
16
+ import "@shoelace-style/shoelace/dist/components/button-group/button-group.js" ;
17
17
import "@shoelace-style/shoelace/dist/components/icon/icon.js" ;
18
18
import "@shoelace-style/shoelace/dist/components/icon-button/icon-button.js" ;
19
19
@@ -183,8 +183,19 @@ export class ChordDetails extends LitElement {
183
183
184
184
<!-- Song toolbar -->
185
185
< div class ="row d-print-none ">
186
- < div class ="col-12 col-lg-8 ">
186
+ < div class ="col-12 ">
187
+
187
188
< div class ="btn-toolbar ">
189
+ < sl-icon-button name ="download " label ="Download this chord chart " title ="Download this chord chart "> </ sl-icon-button >
190
+ < sl-icon-button name ="play-fill " label ="Play the audio recording for this song " title ="Play the audio recording for this song "> </ sl-icon-button >
191
+ < sl-button-group label ="Transpose ">
192
+ < sl-icon-button name ="caret-down-fill "> </ sl-icon-button >
193
+ < sl-icon-button name ="caret-up-fill "> </ sl-icon-button >
194
+ </ sl-button-group >
195
+ < sl-icon-button name ="pencil-square " label ="Edit " title ="Edit this chord chart "> </ sl-icon-button >
196
+ < sl-icon-button name ="printer " label ="Print " title ="Print this chord chart "> </ sl-icon-button >
197
+
198
+
188
199
< div class ="btn-group " role ="group " aria-label ="Chord chart toolbar ">
189
200
< a href ="${ this . downloadUrl ( chord ) } " target ="_blank " download ="" class ="btn btn-light " title ="Download " aria-label ="Download ">
190
201
< img src ="/assets/bs-icons/save.svg " alt ="Download ">
@@ -211,7 +222,7 @@ export class ChordDetails extends LitElement {
211
222
</ div >
212
223
213
224
<!-- Sidebar -->
214
- < div class ="sidebar col-lg-3 d-flex flex-column gap-2 ">
225
+ < div class ="sidebar col-lg-3 d-flex flex-column gap-3 ">
215
226
< sl-card class ="card-header w-100 ">
216
227
< div slot ="header ">
217
228
< div class ="d-flex justify-content-between align-items-center ">
@@ -367,7 +378,7 @@ export class ChordDetails extends LitElement {
367
378
renderLink ( link : string ) : TemplateResult {
368
379
// Don't render Chavah, Youtube, Chordify, or Google Docs links.
369
380
// These are handled separately.
370
- if ( link . includes ( "messianicradio.com" ) || link . includes ( "youtube.com" ) || link . includes ( "chordify.net" ) ) {
381
+ if ( link . includes ( "messianicradio.com" ) || link . includes ( "youtube.com" ) || link . includes ( "chordify.net" ) || link . includes ( "docs.google.com" ) ) {
371
382
return html `` ;
372
383
}
373
384
0 commit comments