add search

This commit is contained in:
Peter Maquiran
2023-04-19 12:34:28 +01:00
parent 9c304e23d7
commit 15276dfc1a
16 changed files with 264 additions and 14 deletions
+16
View File
@@ -29,6 +29,13 @@ export class DeplomasService {
diplomasGerarListNewCount = []
diplomasParaAssinarNewCount = []
callbacks: {
[key: string]: {
funx: Function
id: string
}
} = {}
constructor() {
this.keyNameDiplomasAssinado = (SHA1("DeplomasService"+"diplomasAssinado")).toString()
this.keyNameDiplomasReview = (SHA1("DeplomasService"+"diplomasReview")).toString()
@@ -58,6 +65,15 @@ export class DeplomasService {
}
registerCallback({funx, id}) {
this.callbacks[id] = { funx, id}
}
runCallback() {
for (const [key, value] of Object.entries(this.callbacks)) {
value.funx()
}
}
get deplomasReviewCount() {
return this._diplomasReviewCount