mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
add notification message
This commit is contained in:
@@ -100,19 +100,19 @@ export class DespachoPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
close() {
|
close() {
|
||||||
|
this.TaskService.loadDespachos();
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
}
|
}
|
||||||
|
|
||||||
goBack() {
|
goBack() {
|
||||||
|
|
||||||
|
this.TaskService.loadDespachos();
|
||||||
this.RouteService.goBack();
|
this.RouteService.goBack();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async LoadTaskDetail(serial: string) {
|
async LoadTaskDetail(serial: string) {
|
||||||
this.processes.GetTask(serial).subscribe((res: fullTask) => {
|
this.processes.GetTask(serial).subscribe((res: fullTask) => {
|
||||||
|
this.TaskService.loadDiplomas();
|
||||||
this.TaskService.loadDespachos();
|
|
||||||
|
|
||||||
this.task = {
|
this.task = {
|
||||||
"SerialNumber": res.serialNumber,
|
"SerialNumber": res.serialNumber,
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ import { PermissionService } from 'src/app/services/permission.service';
|
|||||||
import { ThemeService } from 'src/app/services/theme.service'
|
import { ThemeService } from 'src/app/services/theme.service'
|
||||||
import { RouteService } from 'src/app/services/route.service';
|
import { RouteService } from 'src/app/services/route.service';
|
||||||
import { environment } from 'src/environments/environment';
|
import { environment } from 'src/environments/environment';
|
||||||
|
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||||
|
import { TaskService } from 'src/app/services/task.service'
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-despachos-pr-options',
|
selector: 'app-despachos-pr-options',
|
||||||
@@ -37,7 +40,8 @@ export class DespachosPrOptionsPage implements OnInit {
|
|||||||
private RouteService: RouteService,
|
private RouteService: RouteService,
|
||||||
public p: PermissionService,
|
public p: PermissionService,
|
||||||
public ThemeService: ThemeService,
|
public ThemeService: ThemeService,
|
||||||
|
public TaskService: TaskService,
|
||||||
|
private httpErroHandle: HttpErrorHandle,
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@@ -103,7 +107,7 @@ export class DespachosPrOptionsPage implements OnInit {
|
|||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
this.processes.SetTaskToPending(this.serialNumber).subscribe(res=>{
|
this.processes.SetTaskToPending(this.serialNumber).subscribe(res=>{
|
||||||
|
|
||||||
this.toastService._successMessage()
|
this.httpErroHandle.httpsSucessMessagge('Enviar para Pendentes')
|
||||||
this.popoverController.dismiss('close')
|
this.popoverController.dismiss('close')
|
||||||
loader.remove()
|
loader.remove()
|
||||||
},(error)=>{
|
},(error)=>{
|
||||||
@@ -299,7 +303,7 @@ export class DespachosPrOptionsPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.toastService._successMessage('')
|
this.httpErroHandle.httpsSucessMessagge('Concluir')
|
||||||
this.close();
|
this.close();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if(error.status == 0) {
|
if(error.status == 0) {
|
||||||
@@ -356,6 +360,7 @@ export class DespachosPrOptionsPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
|
this.httpErroHandle.httpsSucessMessagge('Executado')
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage()
|
this.toastService.successMessage()
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
@@ -382,6 +387,7 @@ export class DespachosPrOptionsPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
|
this.httpErroHandle.httpsSucessMessagge('Reexecução')
|
||||||
this.toastService.successMessage()
|
this.toastService.successMessage()
|
||||||
this.close();
|
this.close();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
export let versionData = {
|
export let versionData = {
|
||||||
"shortSHA": "040320a04",
|
"shortSHA": "1c35049a6",
|
||||||
"SHA": "040320a04c7afcebae5ad48b0a6e2151fb1a49cd",
|
"SHA": "1c35049a62599daeb5fe80ff5ff28e45eefaad4d",
|
||||||
"branch": "feature/gabinete-search",
|
"branch": "feature/gabinete-search",
|
||||||
"lastCommitAuthor": "'Peter Maquiran'",
|
"lastCommitAuthor": "'Peter Maquiran'",
|
||||||
"lastCommitTime": "'Mon May 29 12:16:49 2023 +0100'",
|
"lastCommitTime": "'Mon May 29 13:54:05 2023 +0100'",
|
||||||
"lastCommitMessage": "push",
|
"lastCommitMessage": "fix",
|
||||||
"lastCommitNumber": "4946",
|
"lastCommitNumber": "4947",
|
||||||
"change": "",
|
"change": "",
|
||||||
"changeStatus": "On branch feature/gabinete-search\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/shared/shared.module.ts",
|
"changeStatus": "On branch feature/gabinete-search\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/pages/gabinete-digital/despachos/despacho/despacho.page.ts\n\tmodified: src/app/shared/popover/despachos-pr-options/despachos-pr-options.page.ts",
|
||||||
"changeAuthor": "peter.maquiran"
|
"changeAuthor": "peter.maquiran"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user