mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
responsive
This commit is contained in:
@@ -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, {
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user