add seach button

This commit is contained in:
Peter Maquiran
2023-04-20 11:45:46 +01:00
parent 15276dfc1a
commit 47dd1b2bc8
12 changed files with 274 additions and 165 deletions
@@ -2,6 +2,7 @@ import { Injectable } from '@angular/core';
import { localstoreService } from './localstore.service'
import { AES, enc, SHA1 } from 'crypto-js'
import { isArray } from 'ionic-angular/umd/util/util';
import { EventoApprovePipe } from 'src/app/pipes/evento-approve.pipe'
@Injectable({
providedIn: 'root'
@@ -19,6 +20,8 @@ export class EventoaprovacaoStoreService {
private _countsAll = 0
EventoApprovePipe = new EventoApprovePipe()
callbacks: {
[key: string]: {
funx: Function
@@ -64,7 +67,7 @@ export class EventoaprovacaoStoreService {
}
save(segment: string, value: []) {
save(segment: string, value: any[]) {
if(typeof segment == 'object') {
throw("segment most be userId")
@@ -75,6 +78,9 @@ export class EventoaprovacaoStoreService {
this._counts[segment] = 0
}
value = value.map( e => this.EventoApprovePipe.transform(e, e))
this._list[segment] = value
this._counts[segment] = value.length