mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Improve loader
This commit is contained in:
+8
-1
@@ -252,7 +252,7 @@ export class BookMeetingModalPage implements OnInit {
|
||||
console.log(this.postData);
|
||||
|
||||
if(this.task.FsId == '8') {
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
try {
|
||||
switch (this.loggeduser.Profile) {
|
||||
case 'MDGPR':
|
||||
@@ -271,10 +271,14 @@ export class BookMeetingModalPage implements OnInit {
|
||||
} catch (error) {
|
||||
this.toastService.badRequest('Reunião não criada')
|
||||
}
|
||||
finally {
|
||||
loader.remove()
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else if(this.task.FsId == '361') {
|
||||
const loader = this.toastService.loading()
|
||||
try {
|
||||
switch (this.loggeduser.Profile) {
|
||||
case 'MDGPR':
|
||||
@@ -290,7 +294,10 @@ export class BookMeetingModalPage implements OnInit {
|
||||
|
||||
} catch (error) {
|
||||
this.toastService.badRequest()
|
||||
} finally {
|
||||
loader.remove()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user