mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
remove some inputs to pr
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="container-div">
|
||||
<div *ngIf="!p.userPermission([p.permissionList.Gabinete.pr_tasks])" class="container-div">
|
||||
<div class="ion-item-class-2">
|
||||
<div class="ion-icon-class">
|
||||
<ion-icon slot="start" src="assets/images/icons-person.svg"></ion-icon>
|
||||
@@ -103,7 +103,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-div">
|
||||
<div *ngIf="!p.userPermission([p.permissionList.Gabinete.pr_tasks])" class="container-div">
|
||||
<div class="ion-item-class-2">
|
||||
<div class="ion-icon-class">
|
||||
<ion-icon slot="start" src="assets/images/icons-people-cc.svg"></ion-icon>
|
||||
|
||||
@@ -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, [
|
||||
|
||||
+2
-2
@@ -128,7 +128,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-div" >
|
||||
<div class="container-div" *ngIf="!p.userPermission([p.permissionList.Gabinete.pr_tasks])">
|
||||
<div class="ion-item-class-2">
|
||||
<div class="ion-icon-class">
|
||||
<ion-icon slot="start" src="assets/images/icons-person.svg"></ion-icon>
|
||||
@@ -151,7 +151,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-div">
|
||||
<div class="container-div" *ngIf="!p.userPermission([p.permissionList.Gabinete.pr_tasks])">
|
||||
<div class="ion-item-class-2">
|
||||
<div class="ion-icon-class">
|
||||
<ion-icon slot="start" src="assets/images/icons-people-cc.svg"></ion-icon>
|
||||
|
||||
+12
-3
@@ -23,7 +23,7 @@ import { DespachoService } from 'src/app/Rules/despacho.service';
|
||||
import { SearchDocumentPipe } from 'src/app/pipes/search-document.pipe';
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { SessionStore } from 'src/app/store/session.service';
|
||||
|
||||
import { PermissionService } from 'src/app/services/permission.service';
|
||||
|
||||
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||
parse: {
|
||||
@@ -109,7 +109,8 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
private userAuth: AuthService,
|
||||
private toastService: ToastService,
|
||||
private despachoService: DespachoService,
|
||||
public ThemeService: ThemeService
|
||||
public ThemeService: ThemeService,
|
||||
public p: PermissionService,
|
||||
) {
|
||||
|
||||
this.loggeduser = SessionStore.user;
|
||||
@@ -194,6 +195,14 @@ export class ExpedientTaskModalPage 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({
|
||||
@@ -210,7 +219,7 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
Priority: new FormControl(this.postData.Priority, [
|
||||
Validators.required,
|
||||
]),
|
||||
participantes: new FormControl(this.taskParticipants, [
|
||||
participantes: new FormControl(this.defaultParticipants() || this.taskParticipants, [
|
||||
Validators.required
|
||||
]),
|
||||
|
||||
|
||||
@@ -791,7 +791,10 @@ export class GabineteDigitalPage implements OnInit {
|
||||
|
||||
if (event) {
|
||||
setTimeout(() => {
|
||||
event?.target?.complete();
|
||||
try {
|
||||
event?.target?.complete();
|
||||
} catch(error) {}
|
||||
|
||||
}, 2000);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -95,6 +95,13 @@ export class ChatSystemService {
|
||||
this.loadChat();
|
||||
}
|
||||
|
||||
|
||||
document.addEventListener('resume', function () {
|
||||
if(this._dm?.length == 0 && this._group?.length == 0) {
|
||||
this.getAllRooms();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
loadChat() {
|
||||
|
||||
Reference in New Issue
Block a user