mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-03 17:54:54 +02:00
Fallback to using from address if test address is not set, add reset button when form has changes
This commit is contained in:
parent
d54edb93d6
commit
d748d43efc
14 changed files with 20 additions and 14 deletions
|
@ -40,7 +40,8 @@
|
|||
</div>
|
||||
|
||||
<div class="flex items-center justify-between pt-4">
|
||||
<ui-btn :loading="sendingTest" :disabled="savingSettings || !newSettings.host" type="button" @click="sendTestClick">{{ $strings.ButtonTest }}</ui-btn>
|
||||
<ui-btn v-if="hasUpdates" :disabled="savingSettings" type="button" @click="resetChanges">{{ $strings.ButtonReset }}</ui-btn>
|
||||
<ui-btn v-else :loading="sendingTest" :disabled="savingSettings || !newSettings.host" type="button" @click="sendTestClick">{{ $strings.ButtonTest }}</ui-btn>
|
||||
<ui-btn :loading="savingSettings" :disabled="!hasUpdates" type="submit">{{ $strings.ButtonSave }}</ui-btn>
|
||||
</div>
|
||||
</form>
|
||||
|
@ -121,6 +122,11 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
resetChanges() {
|
||||
this.newSettings = {
|
||||
...this.settings
|
||||
}
|
||||
},
|
||||
editDeviceClick(device) {
|
||||
this.selectedEReaderDevice = device
|
||||
this.showEReaderDeviceModal = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue