mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +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 {
|
||||
if (ui['auto-check-updates']) {
|
||||
if (ui['auto-check-updates'] !== false) {
|
||||
this.eosService.getEOS()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
<ion-item-divider>Marketplace</ion-item-divider>
|
||||
<ion-item
|
||||
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-note slot="end"
|
||||
>{{ patch.data.ui['auto-check-updates'] ? 'Enabled' : 'Disabled'
|
||||
}}</ion-note
|
||||
>{{ patch.data.ui['auto-check-updates'] !== false ? 'Enabled' :
|
||||
'Disabled' }}</ion-note
|
||||
>
|
||||
</ion-item>
|
||||
</ion-item-group>
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
export const mockPatchData: DataModel = {
|
||||
ui: {
|
||||
name: `Matt's Embassy`,
|
||||
'auto-check-updates': true,
|
||||
'auto-check-updates': undefined,
|
||||
'pkg-order': [],
|
||||
'ack-welcome': '1.0.0',
|
||||
marketplace: undefined,
|
||||
|
||||
Reference in New Issue
Block a user