@fluxhub/fluxhub-lib 11.0.49 → 11.0.51
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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +9 -9
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhuploadpanel.js +10 -10
- package/fesm2015/fluxhub-fluxhub-lib.js +9 -9
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhuploadpanel.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4555,6 +4555,7 @@
|
|
|
4555
4555
|
this.show_download = true;
|
|
4556
4556
|
this.description_required = false;
|
|
4557
4557
|
this.selezionare_tipologia = "Selezionare la Tipologia";
|
|
4558
|
+
this.show_delete = true;
|
|
4558
4559
|
this.b_initt = false;
|
|
4559
4560
|
this.expand = new i0.EventEmitter();
|
|
4560
4561
|
this.file_copy = new i0.EventEmitter();
|
|
@@ -4587,9 +4588,9 @@
|
|
|
4587
4588
|
if (obj_r != null)
|
|
4588
4589
|
if (obj_r.msg != null)
|
|
4589
4590
|
if (obj_r.msg != '') {
|
|
4590
|
-
if (obj_r.result_msg == 'KO')
|
|
4591
|
+
if (obj_r.result_msg == 'KO' || obj_r.msg.indexOf('KO') > -1)
|
|
4591
4592
|
this.toastr.error(obj_r.msg);
|
|
4592
|
-
|
|
4593
|
+
else
|
|
4593
4594
|
this.toastr.info(obj_r.msg);
|
|
4594
4595
|
}
|
|
4595
4596
|
};
|
|
@@ -4821,10 +4822,9 @@
|
|
|
4821
4822
|
iconf = arrf[arrf.length - 1].toLocaleLowerCase();
|
|
4822
4823
|
_this.arr_g[i].icon = iconf + ".svg";
|
|
4823
4824
|
if (_this.can_delete_owner) {
|
|
4824
|
-
_this.arr_g[i].can_delete =
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
_this.uti.hasRole(_this.ruolo_supervisore);
|
|
4825
|
+
_this.arr_g[i].can_delete = _this.show_delete && (!_this.access_control ||
|
|
4826
|
+
_this.arr_g[i].idp == _this._appservice.user ||
|
|
4827
|
+
_this.uti.hasRole(_this.ruolo_supervisore));
|
|
4828
4828
|
if ("[ZZZ_DIS_CC]" == _this.ruolo_supervisore)
|
|
4829
4829
|
_this.arr_g[i].can_delete_m = _this.arr_g[i].idp;
|
|
4830
4830
|
else
|
|
@@ -4832,9 +4832,8 @@
|
|
|
4832
4832
|
_this.arr_g[i].idp + ",[" + _this.ruolo_supervisore + "]";
|
|
4833
4833
|
}
|
|
4834
4834
|
else {
|
|
4835
|
-
_this.arr_g[i].can_delete =
|
|
4836
|
-
|
|
4837
|
-
_this.uti.hasRole(_this.ruolo_supervisore);
|
|
4835
|
+
_this.arr_g[i].can_delete = _this.show_delete && (!_this.access_control ||
|
|
4836
|
+
_this.uti.hasRole(_this.ruolo_supervisore));
|
|
4838
4837
|
if ("[ZZZ_DIS_CC]" == _this.ruolo_supervisore)
|
|
4839
4838
|
_this.arr_g[i].can_delete_m = "";
|
|
4840
4839
|
else
|
|
@@ -4899,6 +4898,7 @@
|
|
|
4899
4898
|
show_download: [{ type: i0.Input }],
|
|
4900
4899
|
description_required: [{ type: i0.Input }],
|
|
4901
4900
|
selezionare_tipologia: [{ type: i0.Input }],
|
|
4901
|
+
show_delete: [{ type: i0.Input }],
|
|
4902
4902
|
expand: [{ type: i0.Output }],
|
|
4903
4903
|
file_copy: [{ type: i0.Output }],
|
|
4904
4904
|
change: [{ type: i0.Output }],
|