mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Gabinete blue text on gray theme changed to black and icon and splash changed
This commit is contained in:
@@ -152,7 +152,7 @@ ion-item{
|
||||
font-family: Roboto;
|
||||
font-size: 12pt;
|
||||
font-weight: 700;
|
||||
color: #0d89d1;
|
||||
color: var(--title-text-color);
|
||||
padding-left: 3px;
|
||||
|
||||
.subject{
|
||||
|
||||
@@ -142,7 +142,7 @@ ion-item{
|
||||
font-family: Roboto;
|
||||
font-size: 12pt;
|
||||
font-weight: 700;
|
||||
color: #0d89d1;
|
||||
color: var(--title-text-color);
|
||||
padding-left: 3px;
|
||||
|
||||
.subject{
|
||||
|
||||
@@ -132,7 +132,7 @@ ion-item{
|
||||
font-family: Roboto;
|
||||
font-size: 12pt;
|
||||
font-weight: 700;
|
||||
color: #0d89d1;
|
||||
color: var(--title-text-color);
|
||||
padding-left: 3px;
|
||||
|
||||
.subject{
|
||||
|
||||
@@ -130,7 +130,7 @@ ion-item{
|
||||
font-family: Roboto;
|
||||
font-size: 12pt;
|
||||
font-weight: 700;
|
||||
color: #0d89d1;
|
||||
color: var(--title-text-color);
|
||||
padding-left: 3px;
|
||||
|
||||
.subject{
|
||||
|
||||
@@ -132,7 +132,7 @@ ion-item{
|
||||
font-family: Roboto;
|
||||
font-size: 12pt;
|
||||
font-weight: 700;
|
||||
color: #0d89d1;
|
||||
color: var(--title-text-color);
|
||||
padding-left: 3px;
|
||||
|
||||
.subject{
|
||||
|
||||
@@ -136,7 +136,7 @@ ion-item{
|
||||
font-family: Roboto;
|
||||
font-size: 12pt;
|
||||
font-weight: 700;
|
||||
color: #0d89d1;
|
||||
color: var(--title-text-color);
|
||||
padding-left: 3px;
|
||||
|
||||
.subject{
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
font-family: Roboto;
|
||||
font-size: 12pt;
|
||||
font-weight: 700;
|
||||
color: #0d89d1;
|
||||
color: var(--title-text-color);
|
||||
padding-left: 3px;
|
||||
|
||||
.subject{
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user