@arsedizioni/ars-utils 20.4.52 → 20.4.55
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.
|
@@ -668,7 +668,7 @@ class ClipperDocumentMenuComponent {
|
|
|
668
668
|
this.canAddToCalendar = () => {
|
|
669
669
|
let canAdd = true;
|
|
670
670
|
this.getMultipleSelection()?.forEach(n => {
|
|
671
|
-
if (n.model !==
|
|
671
|
+
if (n.model !== ClipperModel.Scadenze && n.model !== ClipperModel.Segnalazioni) {
|
|
672
672
|
canAdd = false;
|
|
673
673
|
return;
|
|
674
674
|
}
|
|
@@ -678,7 +678,7 @@ class ClipperDocumentMenuComponent {
|
|
|
678
678
|
this.canExportCalendar = () => {
|
|
679
679
|
let canExport = true;
|
|
680
680
|
this.getMultipleSelection()?.forEach(n => {
|
|
681
|
-
if (n.model !==
|
|
681
|
+
if (n.model !== ClipperModel.Scadenze && n.model !== ClipperModel.Segnalazioni) {
|
|
682
682
|
canExport = false;
|
|
683
683
|
return;
|
|
684
684
|
}
|
|
@@ -686,16 +686,18 @@ class ClipperDocumentMenuComponent {
|
|
|
686
686
|
return canExport && this.canUseCalendar() && !this.isReference();
|
|
687
687
|
};
|
|
688
688
|
this.canAddToWorkingDocuments = () => {
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
689
|
+
if (this.selectionSource() !== 'bag') {
|
|
690
|
+
const items = this.getMultipleSelection();
|
|
691
|
+
if (items.length > 0) {
|
|
692
|
+
let canAdd = true;
|
|
693
|
+
items.forEach(n => {
|
|
694
|
+
if (n.model === ClipperModel.Coordinamento) {
|
|
695
|
+
canAdd = false;
|
|
696
|
+
return;
|
|
697
|
+
}
|
|
698
|
+
});
|
|
699
|
+
return canAdd;
|
|
700
|
+
}
|
|
699
701
|
}
|
|
700
702
|
return false;
|
|
701
703
|
};
|