mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
add seach button
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user