mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
enable and disable auto check for updates
This commit is contained in:
committed by
Aiden McClelland
parent
0c7eae7333
commit
fc9b3a6d69
@@ -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'],
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user