1
+ import { isEnableSubscription } from "../constant/const" ;
2
+
1
3
export default function reportJson ( id ) {
2
4
// console.log("json ", json);
3
5
const head = [ "Sr.No" , "Title" , "Note" , "Folder" , "File" , "Owner" , "Signers" ] ;
@@ -22,6 +24,24 @@ export default function reportJson(id) {
22
24
const contactbook = [ "Sr.No" , "Name" , "Email" , "Phone" ] ;
23
25
const dashboardReportHead = [ "Title" , "File" , "Owner" , "Signers" ] ;
24
26
const templateReport = [ "Sr.No" , "Title" , "File" , "Owner" , "Signers" ] ;
27
+ const templateSubAction = isEnableSubscription
28
+ ? [
29
+ {
30
+ btnId : "2434" ,
31
+ btnLabel : "Embed" ,
32
+ hoverLabel : "Embed" ,
33
+ btnIcon : "fa-light fa-code" ,
34
+ action : "Embed"
35
+ } ,
36
+ {
37
+ btnId : "2434" ,
38
+ btnLabel : "Copy TemplateId" ,
39
+ hoverLabel : "Copy TemplateId" ,
40
+ btnIcon : "fa-light fa-copy" ,
41
+ action : "CopyTemplateId"
42
+ }
43
+ ]
44
+ : [ ] ;
25
45
switch ( id ) {
26
46
// draft documents report
27
47
case "ByHuevtCFY" :
@@ -363,20 +383,7 @@ export default function reportJson(id) {
363
383
redirectUrl : "template" ,
364
384
action : "redirect"
365
385
} ,
366
- {
367
- btnId : "2434" ,
368
- btnLabel : "Embed" ,
369
- hoverLabel : "Embed" ,
370
- btnIcon : "fa-light fa-code" ,
371
- action : "Embed"
372
- } ,
373
- {
374
- btnId : "2434" ,
375
- btnLabel : "Copy TemplateId" ,
376
- hoverLabel : "Copy TemplateId" ,
377
- btnIcon : "fa-light fa-copy" ,
378
- action : "CopyTemplateId"
379
- } ,
386
+ ...templateSubAction ,
380
387
{
381
388
btnId : "1834" ,
382
389
btnLabel : "Delete" ,
0 commit comments