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