mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-10 03:32:52 +00:00
60 lines
2.1 KiB
HTML
60 lines
2.1 KiB
HTML
<!--
|
|
~ Copyright (C) 2023 StApps
|
|
~ This program is free software: you can redistribute it and/or modify it
|
|
~ under the terms of the GNU General Public License as published by the Free
|
|
~ Software Foundation, version 3.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful, but WITHOUT
|
|
~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
~ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
~ more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License along with
|
|
~ this program. If not, see <https://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<ion-header>
|
|
<ion-toolbar color="primary" mode="ios">
|
|
<ion-buttons slot="start">
|
|
<ion-back-button></ion-back-button>
|
|
</ion-buttons>
|
|
<ion-title>{{ 'settings.title' | translate | titlecase }}</ion-title>
|
|
</ion-toolbar>
|
|
</ion-header>
|
|
|
|
<ion-content class="ion-no-padding ion-content-parallax">
|
|
<div>
|
|
<div class="settings-content">
|
|
<ng-container *ngFor="let categoryKey of categoriesOrder">
|
|
<ion-list *ngIf="objectKeys(settingsCache).includes(categoryKey)">
|
|
<!-- <ion-item-divider>
|
|
<h2>
|
|
{{
|
|
'categories[0]'
|
|
| thingTranslate
|
|
: $any(
|
|
settingsCache[categoryKey]?.settings[
|
|
objectKeys(settingsCache[categoryKey]?.settings)[0]
|
|
]
|
|
)
|
|
| titlecase
|
|
}}
|
|
</h2>
|
|
</ion-item-divider> -->
|
|
<stapps-settings-item
|
|
*ngFor="let settingKeys of objectKeys(settingsCache[categoryKey].settings)"
|
|
[setting]="settingsCache[categoryKey].settings[settingKeys]"
|
|
></stapps-settings-item>
|
|
</ion-list>
|
|
</ng-container>
|
|
|
|
<calendar-sync-settings></calendar-sync-settings>
|
|
|
|
<ion-button color="medium" expand="block" fill="outline" (click)="presentResetAlert()">
|
|
{{ 'settings.resetSettings' | translate }}
|
|
<ion-icon slot="start" name="device_reset"></ion-icon>
|
|
</ion-button>
|
|
</div>
|
|
</div>
|
|
</ion-content>
|