mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
remove share-stats, cosmetic improvements
This commit is contained in:
committed by
Keagan McClelland
parent
5326de9b84
commit
20acd8efea
@@ -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
|
||||
|
||||
@@ -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,
|
||||
) {}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user