responsive

This commit is contained in:
Peter Maquiran
2023-07-06 12:18:15 +01:00
parent 89e11c6fe4
commit 3df11142f6
53 changed files with 695 additions and 893 deletions
+1 -3
View File
@@ -17,9 +17,7 @@ export class ThemeService {
currentTheme: 'gov' | 'default' | 'doneIt' = this.defaultTheme
keyName: string
constructor(
private storageservice: StorageService
) {
constructor() {
this.keyName = (SHA1("ThemeService")).toString()
let restore = localstoreService.get(this.keyName, {
+12 -1
View File
@@ -2,6 +2,7 @@ import { Injectable } from '@angular/core';
import { AnimationController, ModalController, ToastController } from '@ionic/angular';
import { BadRequestPage } from '../shared/popover/bad-request/bad-request.page';
import { SuccessMessagePage } from '../shared/popover/success-message/success-message.page';
import { ThemeService } from 'src/app/services/theme.service';
@Injectable({
providedIn: 'root'
@@ -10,6 +11,7 @@ export class ToastService {
constructor(
public toastController: ToastController,
public ThemeService: ThemeService,
) { }
ngOnInit() {}
@@ -188,6 +190,15 @@ export class ToastService {
}
async ViewEventOption() {
// this.ThemeService.currentTheme == 'default'
// this.ThemeService.currentTheme == 'gov'
// this.ThemeService.currentTheme == 'doneIt'
if(this.ThemeService.currentTheme == 'default') {
} else if (this.ThemeService.currentTheme == 'gov') {}
}
async notificationMessage(message?: any, callback?: any,data?: any) {
@@ -266,4 +277,4 @@ export class ToastService {
}
export const ToastsService = new ToastService(new ToastController())
export const ToastsService = new ToastService(new ToastController(), new ThemeService())