mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
remove some inputs to pr
This commit is contained in:
@@ -97,7 +97,7 @@ export class CreateProcessPage implements OnInit {
|
||||
public p: PermissionService,
|
||||
private despachoService: DespachoService,
|
||||
private pedidoService: PedidoService,
|
||||
public ThemeService: ThemeService
|
||||
public ThemeService: ThemeService,
|
||||
) {
|
||||
this.loggeduser = SessionStore.user;
|
||||
this.task = this.navParams.get('task');
|
||||
@@ -199,6 +199,13 @@ export class CreateProcessPage implements OnInit {
|
||||
this.validateFrom = true
|
||||
}
|
||||
|
||||
defaultParticipants () {
|
||||
if(this.p.userPermission([this.p.permissionList.Gabinete.pr_tasks])) {
|
||||
return ['MDGPR']
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
injectValidation() {
|
||||
|
||||
this.Form = new FormGroup({
|
||||
@@ -212,7 +219,7 @@ export class CreateProcessPage implements OnInit {
|
||||
Priority: new FormControl(this.postData.Priority, [
|
||||
Validators.required,
|
||||
]),
|
||||
participantes: new FormControl(this.taskParticipants, [
|
||||
participantes: new FormControl(this.defaultParticipants() || this.taskParticipants, [
|
||||
Validators.required
|
||||
]),
|
||||
selectedTypes: new FormControl(this.selectedTypes, [
|
||||
|
||||
Reference in New Issue
Block a user