remove share-stats, cosmetic improvements

This commit is contained in:
Matt Hill
2022-02-09 11:55:12 -07:00
committed by Keagan McClelland
parent 5326de9b84
commit 20acd8efea
17 changed files with 125 additions and 276 deletions

View File

@@ -15,16 +15,6 @@
<ion-note slot="end">{{ patch.data.ui.name || defaultName }}</ion-note>
</ion-item>
<ion-item
button
(click)="serverConfig.presentAlert('share-stats', server['share-stats'])"
>
<ion-label>Auto Report Bugs</ion-label>
<ion-note slot="end"
>{{ server['share-stats'] ? 'Enabled' : 'Disabled' }}</ion-note
>
</ion-item>
<ion-item-divider>Marketplace</ion-item-divider>
<ion-item
button

View File

@@ -28,9 +28,9 @@ export class PreferencesPage {
private readonly loadingCtrl: LoadingController,
private readonly modalCtrl: ModalController,
private readonly api: ApiService,
public readonly serverConfig: ServerConfigService,
private readonly toastCtrl: ToastController,
private readonly localStorageService: LocalStorageService,
public readonly serverConfig: ServerConfigService,
public readonly patch: PatchDbService,
) {}

View File

@@ -59,19 +59,21 @@
</span>
</ng-container>
</p>
<!-- "Software Update" button only -->
<p *ngIf="button.title === 'Software Update'">
<ng-container
*ngIf="eosService.updateAvailable$ | async; else check"
>
<ion-text class="inline" color="success">
<ion-icon name="repeat"></ion-icon>
<ion-icon name="rocket-outline"></ion-icon>
Update Available
</ion-text>
</ng-container>
<ng-template #check>
<i>Check for updates</i>
<ion-text class="inline" color="dark">
<ion-icon name="refresh"></ion-icon>
Check for updates
</ion-text>
</ng-template>
</p>
</ion-label>

View File

@@ -204,7 +204,10 @@ export class ServerShowPage {
await loader.present()
try {
await this.eosService.getEOS()
const updateAvailable = await this.eosService.getEOS()
if (updateAvailable) {
this.updateEos()
}
} catch (e) {
this.errToast.present(e)
} finally {