mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix
This commit is contained in:
@@ -62,7 +62,7 @@ export class CreateProcessPage implements OnInit {
|
||||
taskDescription: string;
|
||||
loadedAttachments: any;
|
||||
subjectTypes: any;
|
||||
selectedTypes: string[] = [];
|
||||
selectedTypes: string = '';
|
||||
placeholderSubject: string;
|
||||
|
||||
postData: Despacho;
|
||||
@@ -127,7 +127,7 @@ export class CreateProcessPage implements OnInit {
|
||||
this.participants = this.participants = new Array();
|
||||
//Initialize SubjectTypes Array with the value "Indefinido"
|
||||
if(this.loggeduser.Profile == 'PR') {
|
||||
this.selectedTypes = ['99999850'];
|
||||
this.selectedTypes = '99999850';
|
||||
this.placeholderSubject = 'Indefinido'
|
||||
} else {
|
||||
this.placeholderSubject = 'Selecione o tipo de assunto*'
|
||||
@@ -199,7 +199,7 @@ export class CreateProcessPage implements OnInit {
|
||||
this.selectedTypes = ev.filter(data => data != '99999850');
|
||||
}
|
||||
if (ev.length == 0) {
|
||||
this.selectedTypes = ["99999850"];
|
||||
this.selectedTypes = "99999850";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -211,6 +211,8 @@ export class CreateProcessPage implements OnInit {
|
||||
this.processes.GetSubjectType().subscribe(res => {
|
||||
// console.log('subjectTypes',res)
|
||||
this.subjectTypes = res;
|
||||
this.placeholderSubject = 'Selecione o tipo de assunto*'
|
||||
this.selectedTypes = '99999844';
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user