@visns-studio/visns-components 1.4.10 → 1.4.12

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.
@@ -317,6 +317,16 @@ const DataGrid = ({
317
317
  };
318
318
  }, []);
319
319
 
320
+ const sortTrigger = () => {
321
+ let _url = form.url.replace("/ajax", "");
322
+
323
+ navigate(_url + "/sort", {
324
+ state: {
325
+ form: form,
326
+ },
327
+ });
328
+ };
329
+
320
330
  /** Table Hooks */
321
331
  useEffect(() => {
322
332
  const delayedSetDSearch = debounce(() => {
@@ -1284,6 +1294,12 @@ const DataGrid = ({
1284
1294
  />
1285
1295
  </div>
1286
1296
  <div className="filterAction--alt">
1297
+ {form.sort && form.sort.title && (
1298
+ <button className="btn" onClick={sortTrigger}>
1299
+ <div className="icon-plus"></div> Sort Order
1300
+ </button>
1301
+ )}
1302
+
1287
1303
  <button
1288
1304
  className="btn"
1289
1305
  onClick={() => {
@@ -324,7 +324,7 @@ function Form(props) {
324
324
  }));
325
325
  },
326
326
  function (error) {
327
- navigate("/insights");
327
+ navigate("/");
328
328
 
329
329
  toast.error(String(error));
330
330
  }
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  "react-dom": "^17.0.1"
35
35
  },
36
36
  "name": "@visns-studio/visns-components",
37
- "version": "1.4.10",
37
+ "version": "1.4.12",
38
38
  "description": "Various packages to assist in the development of our Custom Applications.",
39
39
  "main": "index.js",
40
40
  "devDependencies": {},