enable and disable auto check for updates

This commit is contained in:
Matt Hill
2021-01-16 10:22:57 -07:00
committed by Aiden McClelland
parent 0c7eae7333
commit fc9b3a6d69
10 changed files with 37 additions and 27 deletions

View File

@@ -52,6 +52,17 @@ export class ServerConfigService {
return this.apiService.patchServerConfig('name', val).then(() => this.serverModel.update({ name: val }))
},
},
autoCheckUpdates: {
spec: {
type: 'boolean',
name: 'Auto Check for Updates',
description: 'On launch, EmabssyOS will automatically check for updates of itself and your installed services. Updating still requires user approval and action. No updates will ever be performed automatically.',
default: true,
},
saveFn: (val: string) => {
return this.apiService.patchServerConfig('autoCheckUpdates', val).then(() => this.serverModel.update({ name: val }))
},
},
// password: {
// spec: {
// type: 'string',