mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix publication post
This commit is contained in:
@@ -30,6 +30,7 @@ export class PublicationHolderService {
|
||||
}
|
||||
|
||||
window['upload-header-set-add'] = (id: string, percentage: number, save: Function) => {
|
||||
this.remove(id)
|
||||
this.PublicationFormMV.push({id, percentage, retry: false, retryFunction: save})
|
||||
this.uploadPercentage()
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ class ReconnectingWebSocketSignalR {
|
||||
if (!this.stop && (!error || error.message !== "Connection stopped by client.")) {
|
||||
setTimeout(() => {
|
||||
this.connect();
|
||||
}, 1000); // Ajuste o atraso conforme necessário
|
||||
}, 3000); // Ajuste o atraso conforme necessário
|
||||
|
||||
}
|
||||
|
||||
@@ -407,30 +407,16 @@ export class ObjectMergeNotification{
|
||||
|
||||
constructor() {
|
||||
this.socket.onDisconnectCallback(()=> {
|
||||
console.log("run watch")
|
||||
//console.log("run watch")
|
||||
this.runWatch = true
|
||||
this.watch()
|
||||
//this.watch()
|
||||
})
|
||||
|
||||
this.socket.onConnectCallback(()=> {
|
||||
|
||||
this.socket.onConnectCallback(() => {
|
||||
console.log("open trigger")
|
||||
this.runWatch = false
|
||||
})
|
||||
|
||||
// this.socket.subscribe((data: socketResponse) => {
|
||||
// if(data.IsCompleted == true) {
|
||||
// console.log("==================!!!====================")
|
||||
// try {
|
||||
// this.callbacks[data.Guid](data)
|
||||
// delete this.callbacks[data.Guid]
|
||||
// } catch (error) {}
|
||||
// } else {
|
||||
// console.log("else", data)
|
||||
// }
|
||||
// })
|
||||
|
||||
// this.watch()
|
||||
}
|
||||
|
||||
connect() {
|
||||
|
||||
Reference in New Issue
Block a user