@fluxhub/fluxhub-lib 10.0.620 → 10.0.622

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14913,7 +14913,7 @@ win_info_doc.ctorParameters = () => [
14913
14913
  ];
14914
14914
 
14915
14915
  class win_log {
14916
- constructor(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file) {
14916
+ constructor(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file, data) {
14917
14917
  this.dialogRef = dialogRef;
14918
14918
  this.m_dialogRef = m_dialogRef;
14919
14919
  this.m_appService = m_appService;
@@ -14921,6 +14921,7 @@ class win_log {
14921
14921
  this._dataService = _dataService;
14922
14922
  this.m_wkf = m_wkf;
14923
14923
  this.m_file = m_file;
14924
+ this.data = data;
14924
14925
  this.ossv = false;
14925
14926
  this.not_comm = false;
14926
14927
  this.not_comm_disabled = false;
@@ -14934,10 +14935,13 @@ class win_log {
14934
14935
  this.b_edit = false;
14935
14936
  this.b_ins = false;
14936
14937
  this.edit_id = 0;
14938
+ this.c_edit = true;
14937
14939
  this.lettori = "";
14938
14940
  this.subject = "";
14939
14941
  this.link = "";
14940
14942
  this.codice_doc = "";
14943
+ if (data.c_edit != null)
14944
+ this.c_edit = data.c_edit;
14941
14945
  }
14942
14946
  ric_all() {
14943
14947
  this.refresh_list();
@@ -15267,7 +15271,7 @@ win_log.decorators = [
15267
15271
  fxLayout="row"
15268
15272
  fxLayoutAlign="center end"
15269
15273
  fxFlex="90"
15270
- *ngIf="!b_edit && commenti_insert"
15274
+ *ngIf="!b_edit && commenti_insert && c_edit"
15271
15275
  >
15272
15276
  <button mat-flat-button color="accent" (click)="ins()">
15273
15277
  <mat-icon>note_add</mat-icon>
@@ -15316,7 +15320,7 @@ win_log.decorators = [
15316
15320
  <th width="15%">{{'Utente' | translate}}</th>
15317
15321
  <th>{{'Operazione' | translate}}</th>
15318
15322
  <td></td>
15319
- <td></td>
15323
+ <td *ngIf="c_edit"></td>
15320
15324
  </tr>
15321
15325
  </thead>
15322
15326
  <tbody>
@@ -15339,7 +15343,7 @@ win_log.decorators = [
15339
15343
  >mail</mat-icon
15340
15344
  >
15341
15345
  </td>
15342
- <td>
15346
+ <td *ngIf="c_edit"> c_edit {{c_edit}}
15343
15347
  <mat-icon
15344
15348
  *ngIf="
15345
15349
  i == 0 &&
@@ -15367,7 +15371,8 @@ win_log.ctorParameters = () => [
15367
15371
  { type: ToastrService },
15368
15372
  { type: QueryService },
15369
15373
  { type: WkfService },
15370
- { type: FileService }
15374
+ { type: FileService },
15375
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
15371
15376
  ];
15372
15377
  win_log.propDecorators = {
15373
15378
  zz: [{ type: ViewChild, args: ["zz",] }]
@@ -17911,12 +17916,13 @@ class dati_aggiuntivi {
17911
17916
  }
17912
17917
  this.salva();
17913
17918
  }
17914
- open_wkf(inser_c = false) {
17919
+ open_wkf(inser_c = false, edit_c = true) {
17915
17920
  let s_h = this.app_s.getState().body_h - 40 + "px";
17916
17921
  let dialogRef = this.m_dialog.open(win_log, {
17917
17922
  disableClose: true,
17918
17923
  width: "95%",
17919
17924
  height: s_h,
17925
+ data: { edit_c: edit_c }
17920
17926
  });
17921
17927
  setTimeout(() => {
17922
17928
  dialogRef.componentInstance.subject =
@@ -18837,6 +18843,7 @@ class wkf_header_bar {
18837
18843
  this.command = new EventEmitter();
18838
18844
  this.admin_role = '[ZZZ_DIS_CC]';
18839
18845
  this.sovra_path = '';
18846
+ this.edit_comments_in_logs = true;
18840
18847
  this.back_lbl = 'Indietro';
18841
18848
  this.save_lbl = 'Salva';
18842
18849
  this.procedi_lbl = 'Procedi';
@@ -18866,7 +18873,7 @@ class wkf_header_bar {
18866
18873
  open_upload() { this.button_clicked.emit('open_upload'); if (this.dt_agg != null)
18867
18874
  this.dt_agg.open_upload(this.sovra_path, this.admin_role); }
18868
18875
  open_wkf() { this.button_clicked.emit('open_wkf'); if (this.dt_agg != null)
18869
- this.dt_agg.open_wkf(); }
18876
+ this.dt_agg.open_wkf(false, this.edit_comments_in_logs); }
18870
18877
  ngAfterViewInit() {
18871
18878
  setTimeout(() => {
18872
18879
  this.back_lbl = this._trs.instant('Indietro');
@@ -19018,6 +19025,7 @@ wkf_header_bar.propDecorators = {
19018
19025
  command: [{ type: Output }],
19019
19026
  admin_role: [{ type: Input }],
19020
19027
  sovra_path: [{ type: Input }],
19028
+ edit_comments_in_logs: [{ type: Input }],
19021
19029
  button_clicked: [{ type: Output }]
19022
19030
  };
19023
19031