mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
default value for device name
This commit is contained in:
committed by
Aiden McClelland
parent
b0c78ad1a0
commit
a74a4b5c28
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user