Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Stigaard committed May 20, 2020
1 parent c68542f commit eb5c227
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/PreviewRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ div
@long-click="toggleOverlayChannelsPreview(input, i+1)"
)

div(v-if="totalNumberOfInputs > inputs.length").pt-8 + {{ (totalNumberOfInputs - inputs.length) }} input
div(v-if="totalNumberOfInputs > inputs.length").pt-8 {{ additionalInputsText }}

// Menu for overlay channel control
v-menu(v-model="overlayChannelDialog.show")
Expand Down Expand Up @@ -108,5 +108,11 @@ export default class PreviewRow extends Vue {
// @ts-ignore
this.execVmixCommands({ Function: 'PreviewInput', Input: inputNumber })
}
get additionalInputsText() {
const additionalInputs = this.totalNumberOfInputs - this.inputs.length
const inputSaying = additionalInputs > 1 ? 'inputs' : 'inputs'
return `+ ${additionalInputs} ${inputSaying}`
}
}
</script>
8 changes: 7 additions & 1 deletion src/ProgramRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ div
@long-click="toggleOverlayChannelsProgram(input, i+1)"
)

div(v-if="totalNumberOfInputs > inputs.length").pt-8 + {{ (totalNumberOfInputs - inputs.length) }} input
div(v-if="totalNumberOfInputs > inputs.length").pt-8 {{ additionalInputsText }}

// Menu for overlay channel control
v-menu(v-model="overlayChannelDialog.show")
Expand Down Expand Up @@ -133,5 +133,11 @@ export default class ProgramRow extends Vue {
// @ts-ignore
this.execVmixCommands({ Function: 'CutDirect', Input: inputNumber })
}
get additionalInputsText() {
const additionalInputs = this.totalNumberOfInputs - this.inputs.length
const inputSaying = additionalInputs > 1 ? 'inputs' : 'inputs'
return `+ ${additionalInputs} ${inputSaying}`
}
}
</script>

0 comments on commit eb5c227

Please sign in to comment.