@visns-studio/visns-components 3.1.11 → 3.1.13
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/components/crm/DataGrid.jsx +26 -25
- package/package.json +1 -1
|
@@ -666,34 +666,35 @@ const DataGrid = forwardRef(
|
|
|
666
666
|
</button>
|
|
667
667
|
)}
|
|
668
668
|
|
|
669
|
-
{form.create &&
|
|
669
|
+
{(form.create &&
|
|
670
670
|
form.create.title &&
|
|
671
|
-
form.create.title !== ''
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
modalOpen('create', 0);
|
|
682
|
-
}
|
|
671
|
+
form.create.title !== '') ||
|
|
672
|
+
form.url ? (
|
|
673
|
+
<button
|
|
674
|
+
className="btn"
|
|
675
|
+
onClick={(e) => {
|
|
676
|
+
e.preventDefault();
|
|
677
|
+
|
|
678
|
+
if (form.create) {
|
|
679
|
+
if (form.create.url) {
|
|
680
|
+
navigate(form.create.url);
|
|
683
681
|
} else {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
682
|
+
modalOpen('create', 0);
|
|
683
|
+
}
|
|
684
|
+
} else {
|
|
685
|
+
if (form.url) {
|
|
686
|
+
window.open(
|
|
687
|
+
form.url,
|
|
688
|
+
'',
|
|
689
|
+
'width=1440,height=1024,menubar=1,resizable=1,status=1,titlebar=1,toolbar=1'
|
|
690
|
+
);
|
|
691
691
|
}
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
692
|
+
}
|
|
693
|
+
}}
|
|
694
|
+
>
|
|
695
|
+
<div className="icon-plus"></div> Create
|
|
696
|
+
</button>
|
|
697
|
+
) : null}
|
|
697
698
|
</div>
|
|
698
699
|
);
|
|
699
700
|
};
|
package/package.json
CHANGED