@visns-studio/visns-components 3.7.0 → 3.7.1
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 +16 -0
- package/package.json +1 -1
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
Envelope,
|
|
34
34
|
Folder,
|
|
35
35
|
Inbox,
|
|
36
|
+
LinkOut,
|
|
36
37
|
Network,
|
|
37
38
|
Ribbon,
|
|
38
39
|
Search,
|
|
@@ -451,6 +452,19 @@ const DataGrid = forwardRef(
|
|
|
451
452
|
toast.success(result.message);
|
|
452
453
|
});
|
|
453
454
|
break;
|
|
455
|
+
case 'link':
|
|
456
|
+
const url = `${s.baseUrl}/${d[s.key]}`;
|
|
457
|
+
navigator.clipboard.writeText(url).then(
|
|
458
|
+
() => {
|
|
459
|
+
toast.success(
|
|
460
|
+
'URL has been copied to your clipboard.'
|
|
461
|
+
);
|
|
462
|
+
},
|
|
463
|
+
() => {
|
|
464
|
+
toast.warning('Failed to copy URL to clipboard.');
|
|
465
|
+
}
|
|
466
|
+
);
|
|
467
|
+
break;
|
|
454
468
|
case 'sound':
|
|
455
469
|
const soundRelation = s.relation.reduce((acc, id) => {
|
|
456
470
|
if (acc === '') {
|
|
@@ -987,6 +1001,8 @@ const DataGrid = forwardRef(
|
|
|
987
1001
|
return getIconComponent(Envelope);
|
|
988
1002
|
case 'family':
|
|
989
1003
|
return getIconComponent(Network);
|
|
1004
|
+
case 'link':
|
|
1005
|
+
return getIconComponent(LinkOut);
|
|
990
1006
|
case 'primary':
|
|
991
1007
|
return getIconComponent(Ribbon);
|
|
992
1008
|
case 'restore':
|
package/package.json
CHANGED