File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ const TemplatePlaceholder = () => {
145
145
const [ currWidgetsDetails , setCurrWidgetsDetails ] = useState ( [ ] ) ;
146
146
const [ isCheckbox , setIsCheckbox ] = useState ( false ) ;
147
147
const [ widgetName , setWidgetName ] = useState ( false ) ;
148
+ const [ isAddRole , setIsAddRole ] = useState ( false ) ;
148
149
const senderUser =
149
150
localStorage . getItem (
150
151
`Parse/${ localStorage . getItem ( "parseAppId" ) } /currentUser`
@@ -481,9 +482,20 @@ const TemplatePlaceholder = () => {
481
482
} else {
482
483
setIsReceipent ( false ) ;
483
484
}
485
+ } else {
486
+ setIsAddRole ( true ) ;
484
487
}
485
488
} ;
486
489
490
+ const tourAddRole = [
491
+ {
492
+ selector : '[data-tut="reactourAddbtn"]' ,
493
+ content : "You need to add a role before you can add fields for it. " ,
494
+ position : "top" ,
495
+ style : { fontSize : "13px" }
496
+ }
497
+ ] ;
498
+
487
499
//function for get pdf page details
488
500
const pageDetails = async ( pdf ) => {
489
501
const load = {
@@ -1218,6 +1230,15 @@ const TemplatePlaceholder = () => {
1218
1230
closeWithMask = { false }
1219
1231
/>
1220
1232
) }
1233
+ { isAddRole && (
1234
+ < Tour
1235
+ onRequestClose = { ( ) => setIsAddRole ( false ) }
1236
+ steps = { tourAddRole }
1237
+ isOpen = { isAddRole }
1238
+ rounded = { 5 }
1239
+ closeWithMask = { false }
1240
+ />
1241
+ ) }
1221
1242
{ /* this component used to render all pdf pages in left side */ }
1222
1243
< RenderAllPdfPage
1223
1244
signPdfUrl = { pdfDetails [ 0 ] . URL }
You can’t perform that action at this time.
0 commit comments