@plusscommunities/pluss-maintenance-web 1.1.38 → 1.1.39
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/dist/index.cjs.js +8 -10
- package/dist/index.esm.js +8 -10
- package/dist/index.umd.js +8 -10
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -594,7 +594,6 @@ const stringActions = Apis$2.stringActions;
|
|
|
594
594
|
var jobStatusOptions = [
|
|
595
595
|
{
|
|
596
596
|
text: "Open",
|
|
597
|
-
alias: "Unassigned",
|
|
598
597
|
order: 0,
|
|
599
598
|
color: "#d5dde4",
|
|
600
599
|
category: "Not Actioned"
|
|
@@ -791,16 +790,15 @@ class JobList extends React.Component {
|
|
|
791
790
|
} = this.props;
|
|
792
791
|
const params = {};
|
|
793
792
|
|
|
794
|
-
// Status filter: translate "All Incomplete" into the actual incomplete statuses
|
|
795
|
-
// Expand each status to include its `alias` so legacy DB values (e.g. "Unassigned"
|
|
796
|
-
// for "Open") still match the filter.
|
|
793
|
+
// Status filter: translate "All Incomplete" into the actual incomplete statuses
|
|
797
794
|
if (selectedStatusFilter) {
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
795
|
+
if (selectedStatusFilter === STATUS_IMCOMPLETE) {
|
|
796
|
+
// Exclude completed statuses - pass all non-completed status texts
|
|
797
|
+
const incompleteStatuses = statusTypes.filter(s => s.category !== STATUS_COMPLETED).map(s => s.text);
|
|
798
|
+
if (incompleteStatuses.length > 0) {
|
|
799
|
+
params.status = incompleteStatuses.join(',');
|
|
800
|
+
}
|
|
801
|
+
} else {
|
|
804
802
|
params.status = selectedStatusFilter;
|
|
805
803
|
}
|
|
806
804
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -563,7 +563,6 @@ const stringActions = Apis$2.stringActions;
|
|
|
563
563
|
var jobStatusOptions = [
|
|
564
564
|
{
|
|
565
565
|
text: "Open",
|
|
566
|
-
alias: "Unassigned",
|
|
567
566
|
order: 0,
|
|
568
567
|
color: "#d5dde4",
|
|
569
568
|
category: "Not Actioned"
|
|
@@ -760,16 +759,15 @@ class JobList extends Component {
|
|
|
760
759
|
} = this.props;
|
|
761
760
|
const params = {};
|
|
762
761
|
|
|
763
|
-
// Status filter: translate "All Incomplete" into the actual incomplete statuses
|
|
764
|
-
// Expand each status to include its `alias` so legacy DB values (e.g. "Unassigned"
|
|
765
|
-
// for "Open") still match the filter.
|
|
762
|
+
// Status filter: translate "All Incomplete" into the actual incomplete statuses
|
|
766
763
|
if (selectedStatusFilter) {
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
764
|
+
if (selectedStatusFilter === STATUS_IMCOMPLETE) {
|
|
765
|
+
// Exclude completed statuses - pass all non-completed status texts
|
|
766
|
+
const incompleteStatuses = statusTypes.filter(s => s.category !== STATUS_COMPLETED).map(s => s.text);
|
|
767
|
+
if (incompleteStatuses.length > 0) {
|
|
768
|
+
params.status = incompleteStatuses.join(',');
|
|
769
|
+
}
|
|
770
|
+
} else {
|
|
773
771
|
params.status = selectedStatusFilter;
|
|
774
772
|
}
|
|
775
773
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -583,7 +583,6 @@
|
|
|
583
583
|
var jobStatusOptions = [
|
|
584
584
|
{
|
|
585
585
|
text: "Open",
|
|
586
|
-
alias: "Unassigned",
|
|
587
586
|
order: 0,
|
|
588
587
|
color: "#d5dde4",
|
|
589
588
|
category: "Not Actioned"
|
|
@@ -780,16 +779,15 @@
|
|
|
780
779
|
} = this.props;
|
|
781
780
|
const params = {};
|
|
782
781
|
|
|
783
|
-
// Status filter: translate "All Incomplete" into the actual incomplete statuses
|
|
784
|
-
// Expand each status to include its `alias` so legacy DB values (e.g. "Unassigned"
|
|
785
|
-
// for "Open") still match the filter.
|
|
782
|
+
// Status filter: translate "All Incomplete" into the actual incomplete statuses
|
|
786
783
|
if (selectedStatusFilter) {
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
784
|
+
if (selectedStatusFilter === STATUS_IMCOMPLETE) {
|
|
785
|
+
// Exclude completed statuses - pass all non-completed status texts
|
|
786
|
+
const incompleteStatuses = statusTypes.filter(s => s.category !== STATUS_COMPLETED).map(s => s.text);
|
|
787
|
+
if (incompleteStatuses.length > 0) {
|
|
788
|
+
params.status = incompleteStatuses.join(',');
|
|
789
|
+
}
|
|
790
|
+
} else {
|
|
793
791
|
params.status = selectedStatusFilter;
|
|
794
792
|
}
|
|
795
793
|
}
|
package/package.json
CHANGED