Skip to content

Commit

Permalink
FIX / #760
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-ev committed Sep 13, 2023
1 parent b3d3bdf commit 4e4e854
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions client/src/components/makes/TrimAudioVideo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,18 @@
<span>
{{ $t("extract_to_export") }}
</span>
<input type="text" :value="selection.start" readonly />

<NumberInput
:value="selection.start"
:suffix="'s'"
@save="setStartOrEnd({ new_start: $event })"
/>
<b-icon icon="arrow-right-circle" />
<input type="text" :value="selection.end" readonly />
<NumberInput
:value="selection.end"
:suffix="'s'"
@save="setStartOrEnd({ new_end: $event })"
/>
</div>

<div class="u-sameRow _submit">
Expand Down Expand Up @@ -243,6 +252,17 @@ export default {
if (start !== this.selection.start || end !== this.selection.end)
this.main_wfpl.getEventEmitter().emit("select", start, end);
},
setStartOrEnd({ new_start, new_end }) {
// let { start, end } = this.selection;
// if (start !== new_start) start = new_start;
// if (end !== new_end) end = new_end;
const start = new_start || this.selection.start;
const end = new_end || this.selection.end;
debugger;
this.main_wfpl.getEventEmitter().emit("select", start, end);
},
async updateSelectionMeta() {
if (
this.selection.start !== this.make.selection.start ||
Expand Down

0 comments on commit 4e4e854

Please sign in to comment.