@visns-studio/visns-components 5.3.8 → 5.3.9
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/package.json
CHANGED
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
79
79
|
},
|
|
80
80
|
"name": "@visns-studio/visns-components",
|
|
81
|
-
"version": "5.3.
|
|
81
|
+
"version": "5.3.9",
|
|
82
82
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
83
83
|
"main": "src/index.js",
|
|
84
84
|
"files": [
|
|
@@ -931,7 +931,22 @@ const DataGrid = forwardRef(
|
|
|
931
931
|
|
|
932
932
|
if (form.create) {
|
|
933
933
|
if (form.create.url) {
|
|
934
|
-
|
|
934
|
+
// Check if URL is external
|
|
935
|
+
if (
|
|
936
|
+
form.create.url.startsWith(
|
|
937
|
+
'http://'
|
|
938
|
+
) ||
|
|
939
|
+
form.create.url.startsWith(
|
|
940
|
+
'https://'
|
|
941
|
+
)
|
|
942
|
+
) {
|
|
943
|
+
window.open(
|
|
944
|
+
form.create.url,
|
|
945
|
+
'_blank'
|
|
946
|
+
);
|
|
947
|
+
} else {
|
|
948
|
+
navigate(form.create.url);
|
|
949
|
+
}
|
|
935
950
|
} else {
|
|
936
951
|
modalOpen('create', 0);
|
|
937
952
|
}
|