Gabinete blue text on gray theme changed to black and icon and splash changed

This commit is contained in:
Eudes Inácio
2021-11-08 15:53:28 +01:00
parent dd0ac4e4ae
commit 2c549931e5
106 changed files with 29 additions and 19 deletions
+22 -12
View File
@@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { Component, OnInit, ViewChild } from '@angular/core';
import { AnimationController, ModalController, Platform } from '@ionic/angular';
import { SearchPage } from 'src/app/pages/search/search.page';
import { Router } from '@angular/router';
@@ -10,6 +10,7 @@ import { SessionStore } from 'src/app/store/session.service';
import { environment } from 'src/environments/environment';
import { EventTrigger } from '../../services/eventTrigger.service';
import { ThemeService } from '../../services/theme.service';
import { interval } from 'rxjs';
@Component({
selector: 'app-header',
@@ -48,7 +49,21 @@ export class HeaderPage implements OnInit {
ngOnInit() {
this.hideSearch();
this.notificationLengthData();
this.notificationLengthData();
this.eventrigger.getObservable().subscribe((data) => {
if (data.notification === "delete" || "recive") {
setInterval(()=>
{
this.notificationLengthData();
console.log('SETTIMEOUT')
}, 1000);
//clearInterval(timer)
console.log('Current badge: ', this.notificationLength)
console.log('Deleted notification', data)
}
})
/* if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
console.log('Notifications not supported')
@@ -58,13 +73,8 @@ export class HeaderPage implements OnInit {
} */
}
ionViewWillEnter() {
this.eventrigger.getObservable().subscribe((data) => {
if (data.notification == "delete" || "recive") {
this.notificationLengthData();
console.log('Deleted notification', data)
}
})
update() {
}
/* UpdateNotificationCount() {
@@ -78,15 +88,15 @@ export class HeaderPage implements OnInit {
)
} */
notificationLengthData() {
this.storageservice.get("Notifications").then((value) => {
async notificationLengthData() {
await this.storageservice.get("Notifications").then((value) => {
console.log("Init get store", value)
/* var data = JSON.parse(value); */
this.notificationLength = value.length;
})
console.log('Timer badge count')
console.log('Timer badge count', this.notificationLength)
}
hideSearch() {