Skip to content

Commit

Permalink
➕ merge pull request #121 from devmount/fix-song-tuning
Browse files Browse the repository at this point in the history
Fix song tuning in song show view
  • Loading branch information
devmount authored May 11, 2022
2 parents 2112ff1 + 78401c1 commit c75ea15
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Custom Title

## Requirements

<!--
* Filling out this template is required.
* All new code must have been tested to ensure against regressions
-->

## Description of the Change

Expand Down
3 changes: 3 additions & 0 deletions src/assets/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ ion-icon {
.bg-primary-dark {
background-color: $bg-color-dark;
}
.text-dark {
color: $gray-color-dark !important;
}
.text-gray {
color: $gray-color-600 !important;
}
Expand Down
2 changes: 1 addition & 1 deletion src/modals/SetlistSet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<input v-model="setlistSongs" :value="key" type="checkbox">
<i class="form-icon"></i> {{ fsong.title }} <label class="label px-2">{{ fsong.tuning }}</label>
<div class="text-gray text-small">
{{ fsong.subtitle }} | <span :title="$t('title.lastPerformed')">{{ performedSongs[key] }}</span>
{{ fsong.subtitle }} <span v-if="performedSongs[key]" class="text-dark" :title="$t('title.lastPerformed')">&nbsp;{{ performedSongs[key] }}</span>
</div>
</label>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/views/SongShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ export default {
mounted () {
// focus component area for shortcuts
this.$refs['song-show'].focus();
// set custom tuning when loading this component without refresh
this.tuning = this.song ? this.urlKeyDiff() : 0;
// set custom tuning when loading this component and songKey is given
this.tuning = this.song && this.songKey ? this.urlKeyDiff() : 0;
},
methods: {
// calculates difference between song key and url key parameter and returns new key scale index
Expand Down

0 comments on commit c75ea15

Please sign in to comment.