default value for device name

This commit is contained in:
Matt Hill
2021-09-11 08:49:11 -06:00
committed by Aiden McClelland
parent b0c78ad1a0
commit a74a4b5c28
3 changed files with 8 additions and 4 deletions

View File

@@ -34,9 +34,11 @@ export class PreferencesPage {
message: 'This is for your reference only.',
label: 'Device Name',
useMask: false,
placeholder: this.patch.data['server-info'].id,
nullable: true,
value: this.patch.data.ui.name,
buttonText: 'Save',
submitFn: async (value: string) => await this.setDbValue('name', value),
submitFn: async (value: string) => await this.setDbValue('name', value || this.patch.data['server-info'].id),
},
cssClass: 'alertlike-modal',
presentingElement: await this.modalCtrl.getTop(),