more styling

This commit is contained in:
Matt Hill
2021-07-02 13:56:34 -06:00
committed by Aiden McClelland
parent da3aa0a2a7
commit b16ef3c621
32 changed files with 314 additions and 271 deletions

View File

@@ -1,6 +1,6 @@
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-buttons slot="start" *ngIf="fromToast">
<pwa-back-button></pwa-back-button>
</ion-buttons>
<ion-title>Notifications</ion-title>

View File

@@ -3,6 +3,7 @@ import { ApiService } from 'src/app/services/api/api.service'
import { LoaderService } from 'src/app/services/loader.service'
import { ServerNotification, ServerNotifications } from 'src/app/services/api/api-types'
import { AlertController } from '@ionic/angular'
import { ActivatedRoute } from '@angular/router'
@Component({
selector: 'notifications',
@@ -15,15 +16,18 @@ export class NotificationsPage {
notifications: ServerNotifications = []
page = 1
needInfinite = false
fromToast = false
readonly perPage = 20
constructor (
private readonly apiService: ApiService,
private readonly loader: LoaderService,
private readonly alertCtrl: AlertController,
private readonly route: ActivatedRoute,
) { }
async ngOnInit () {
this.fromToast = !!this.route.snapshot.queryParamMap.get('toast')
this.notifications = await this.getNotifications()
this.loading = false
}