Unbork settings page even more

This commit is contained in:
Tamius Han 2021-04-01 21:40:46 +02:00
parent a0eeabbd50
commit 09253fe0a1
2 changed files with 4 additions and 4 deletions

View File

@ -117,7 +117,7 @@ export default {
data () { data () {
return { return {
StretchType: StretchType, StretchType: StretchType,
AspectRatio: AspectRatio, AspectRatioType: AspectRatioType,
} }
}, },
created () { created () {

View File

@ -108,7 +108,7 @@
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="number"
step="any" step="any"
:value="settings.active.StretchType.conditionalDifferencePercent" :value="settings.active.stretch.conditionalDifferencePercent"
@input="updateStretchThreshold($event.target.value)" @input="updateStretchThreshold($event.target.value)"
> >
</div> </div>
@ -168,7 +168,7 @@ export default {
return { return {
StretchType: StretchType, StretchType: StretchType,
ExtensionMode: ExtensionMode, ExtensionMode: ExtensionMode,
VideoAlignment: VideoAlignment, VideoAlignmentType: VideoAlignmentType,
stretchThreshold: 0, stretchThreshold: 0,
corruptedSettingsError: false, corruptedSettingsError: false,
downloadPermissionError: false, downloadPermissionError: false,
@ -198,7 +198,7 @@ export default {
if (!newThreshold || isNaN(newThreshold)) { if (!newThreshold || isNaN(newThreshold)) {
return; return;
} }
this.settings.active.StretchType.conditionalDifferencePercent = newThreshold; this.settings.active.stretch.conditionalDifferencePercent = newThreshold;
this.settings.save(); this.settings.save();
}, },
resetSettings() { resetSettings() {