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

@@ -418,7 +418,7 @@ const mockApiServer: () => ReqRes.GetServerRes = () => ({
'WiFI': '2.4 GHz and 5.0 GHz IEEE 802.11ac wireless, Bluetooth 5.0, BLE',
'Ethernet': 'Gigabit',
'Disk': '512 GB Flash (280 GB available)',
'Embassy OS Version': '0.1.0.1',
'EmbassyOS Version': '0.1.0.1',
},
wifi: {
ssids: ['Goosers', 'Atlantic City'],

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',

View File

@@ -133,7 +133,7 @@ export class SyncNotifier {
const alert = await this.alertCtrl.create({
backdropDismiss: true,
header: 'New EmbassyOS Version!',
message: `Update to EmbassyOS, version ${versionLatest}?`,
message: `Update EmbassyOS to version ${versionLatest}?`,
buttons: [
{
text: 'Not now',