Skip to content

Commit

Permalink
fix onSaveChange
Browse files Browse the repository at this point in the history
  • Loading branch information
h1romas4 committed Nov 26, 2023
1 parent e313be9 commit 7fd5708
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/MIDISetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,18 @@ function detectDevice(manufacturer, list, model) {
model.value = list.value[index].id
return true
}
/**
* onSaveChange
*/
function onSaveChange() {
emit('save-and-change',
midiInputDevice.value,
midiOutputDevice.value,
outputChannel.value,
pcMSB.value,
pcLSB.value)
}
</script>

<template>
Expand Down Expand Up @@ -216,6 +228,7 @@ function detectDevice(manufacturer, list, model) {
</button>
<button
v-bind:disabled="disabledMIDI || props.isBusy"
v-on:click="onSaveChange()"
class="btn btn-primary me-3"
type="button">
Save & Change
Expand Down

0 comments on commit 7fd5708

Please sign in to comment.