Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"assign": "Zuweisen",
"back": "Zurück",
"cancel": "Abbrechen",
"ccliReport": "CCLI-Liedmeldung",
"changePassword": "Passwort ändern",
"copy": "Kopieren",
"createSetlist": "Setliste Erstellen",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"assign": "Assign",
"back": "Back",
"cancel": "Cancel",
"ccliReport": "CCLI Report",
"changePassword": "Change Password",
"copy": "Copy",
"createSetlist": "Create Setlist",
Expand Down
18 changes: 18 additions & 0 deletions frontend/src/views/SetlistShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,15 @@
<icon-notes class="w-5 h-5 stroke-1.5" />
{{ t('button.addSlide') }}
</button>
<a
v-if="ccliReportUrl"
:href="ccliReportUrl"
target="_blank"
class="px-3 py-2 w-full flex items-center gap-3 hover:bg-blade-100 dark:hover:bg-blade-750"
>
<icon-report class="w-5 h-5 stroke-1.5" />
{{ t('button.ccliReport') }}
</a>
<button
v-if="canDeleteSetlist"
class="px-3 py-2 w-full flex items-center gap-3 text-rose-500 hover:bg-rose-100 dark:hover:bg-rose-900/30"
Expand Down Expand Up @@ -560,6 +569,7 @@ import {
IconPresentation,
IconRefresh,
IconRefreshOff,
IconReport,
IconTrash,
IconTxt,
IconUser,
Expand Down Expand Up @@ -714,6 +724,14 @@ const songCount = computed(() => {
return setlist.value?.entity.entries.filter(s => !isSlide(s)).length ?? 0;
});

// CCLI reporting link for songs with a CCLI id, excluding public domain songs (undefined if none)
const ccliReportUrl = computed(() => {
const ids = setlistSongs.value
.filter(song => song.ccli && !song.publicDomain)
.map(song => song.ccli);
return ids.length > 0 ? `https://reporting.ccli.com/search?s=${ids.join(';')}` : undefined;
});

// save new song order for setlist
const saveOrder = async () => {
const sl = setlist.value;
Expand Down
Loading