mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
auto check automatic
This commit is contained in:
committed by
Drew Ansbacher
parent
df9773f8b4
commit
ad5be18bb4
@@ -215,7 +215,7 @@ export class AppComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private checkForEosUpdate(ui: UIData): void {
|
private checkForEosUpdate(ui: UIData): void {
|
||||||
if (ui['auto-check-updates']) {
|
if (ui['auto-check-updates'] !== false) {
|
||||||
this.eosService.getEOS()
|
this.eosService.getEOS()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,12 +18,12 @@
|
|||||||
<ion-item-divider>Marketplace</ion-item-divider>
|
<ion-item-divider>Marketplace</ion-item-divider>
|
||||||
<ion-item
|
<ion-item
|
||||||
button
|
button
|
||||||
(click)="serverConfig.presentAlert('auto-check-updates', patch.data.ui['auto-check-updates'])"
|
(click)="serverConfig.presentAlert('auto-check-updates', patch.data.ui['auto-check-updates'] !== false)"
|
||||||
>
|
>
|
||||||
<ion-label>Auto Check for Updates</ion-label>
|
<ion-label>Auto Check for Updates</ion-label>
|
||||||
<ion-note slot="end"
|
<ion-note slot="end"
|
||||||
>{{ patch.data.ui['auto-check-updates'] ? 'Enabled' : 'Disabled'
|
>{{ patch.data.ui['auto-check-updates'] !== false ? 'Enabled' :
|
||||||
}}</ion-note
|
'Disabled' }}</ion-note
|
||||||
>
|
>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-item-group>
|
</ion-item-group>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
export const mockPatchData: DataModel = {
|
export const mockPatchData: DataModel = {
|
||||||
ui: {
|
ui: {
|
||||||
name: `Matt's Embassy`,
|
name: `Matt's Embassy`,
|
||||||
'auto-check-updates': true,
|
'auto-check-updates': undefined,
|
||||||
'pkg-order': [],
|
'pkg-order': [],
|
||||||
'ack-welcome': '1.0.0',
|
'ack-welcome': '1.0.0',
|
||||||
marketplace: undefined,
|
marketplace: undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user