@@ -58,7 +58,7 @@ const TemplatePlaceholder = () => {
58
58
const [ handleError , setHandleError ] = useState ( ) ;
59
59
const [ currentEmail , setCurrentEmail ] = useState ( ) ;
60
60
const [ pdfNewWidth , setPdfNewWidth ] = useState ( ) ;
61
- const [ placeholderTour , setPlaceholderTour ] = useState ( true ) ;
61
+ const [ templateTour , setTemplateTour ] = useState ( true ) ;
62
62
const [ checkTourStatus , setCheckTourStatus ] = useState ( false ) ;
63
63
const [ tourStatus , setTourStatus ] = useState ( [ ] ) ;
64
64
const [ signerUserId , setSignerUserId ] = useState ( ) ;
@@ -301,10 +301,10 @@ const TemplatePlaceholder = () => {
301
301
if ( tourstatus && tourstatus . length > 0 ) {
302
302
setTourStatus ( tourstatus ) ;
303
303
const checkTourRecipients = tourstatus . filter (
304
- ( data ) => data . placeholder
304
+ ( data ) => data . templatetour
305
305
) ;
306
306
if ( checkTourRecipients && checkTourRecipients . length > 0 ) {
307
- setCheckTourStatus ( checkTourRecipients [ 0 ] . placeholder ) ;
307
+ setCheckTourStatus ( checkTourRecipients [ 0 ] . templatetour ) ;
308
308
}
309
309
}
310
310
const loadObj = {
@@ -766,12 +766,19 @@ const TemplatePlaceholder = () => {
766
766
//here you can add your messages in content and selector is key of particular steps
767
767
768
768
const tourConfig = [
769
+ {
770
+ selector : '[data-tut="reactourAddbtn"]' ,
771
+ content : `Clicking "Add" button will show you popup of Add Role, fill role name or it will take by default name and create new receipent.` ,
772
+ position : "top" ,
773
+ observe : '[data-tut="reactourAddbtn--observe"]' ,
774
+ style : { fontSize : "13px" }
775
+ } ,
769
776
{
770
777
selector : '[data-tut="reactourFirst"]' ,
771
778
content : `Select a recipient from this list to add a place-holder where he is supposed to sign.The placeholder will appear in the same colour as the recipient name once you drop it on the document.` ,
772
779
position : "top" ,
773
-
774
- style : { fontSize : "13px" }
780
+ style : { fontSize : "13px" } ,
781
+ action : ( ) => handleCloseRoleModal ( )
775
782
} ,
776
783
{
777
784
selector : '[data-tut="reactourSecond"]' ,
@@ -787,29 +794,29 @@ const TemplatePlaceholder = () => {
787
794
} ,
788
795
{
789
796
selector : '[data-tut="reactourFour"]' ,
790
- content : `Clicking "Send " button will share the document with all the recipients.It will also send out emails to everyone on the recipients list .` ,
797
+ content : `Clicking "Save " button will save the template and will ask you for creating new document .` ,
791
798
position : "top" ,
792
799
style : { fontSize : "13px" }
793
800
}
794
801
] ;
795
802
796
803
//function for update TourStatus
797
804
const closeTour = async ( ) => {
798
- setPlaceholderTour ( false ) ;
805
+ setTemplateTour ( false ) ;
799
806
const extUserClass = localStorage . getItem ( "extended_class" ) ;
800
807
let updatedTourStatus = [ ] ;
801
808
if ( tourStatus . length > 0 ) {
802
809
updatedTourStatus = [ ...tourStatus ] ;
803
- const placeholderIndex = tourStatus . findIndex (
804
- ( obj ) => obj [ "placeholder " ] === false || obj [ "placeholder " ] === true
810
+ const templatetourIndex = tourStatus . findIndex (
811
+ ( obj ) => obj [ "templatetour " ] === false || obj [ "templatetour " ] === true
805
812
) ;
806
- if ( placeholderIndex !== - 1 ) {
807
- updatedTourStatus [ placeholderIndex ] = { placeholder : true } ;
813
+ if ( templatetourIndex !== - 1 ) {
814
+ updatedTourStatus [ templatetourIndex ] = { templatetour : true } ;
808
815
} else {
809
- updatedTourStatus . push ( { placeholder : true } ) ;
816
+ updatedTourStatus . push ( { templatetour : true } ) ;
810
817
}
811
818
} else {
812
- updatedTourStatus = [ { placeholder : true } ] ;
819
+ updatedTourStatus = [ { templatetour : true } ] ;
813
820
}
814
821
await axios
815
822
. put (
@@ -989,7 +996,7 @@ const TemplatePlaceholder = () => {
989
996
< Tour
990
997
onRequestClose = { closeTour }
991
998
steps = { tourConfig }
992
- isOpen = { placeholderTour }
999
+ isOpen = { templateTour }
993
1000
rounded = { 5 }
994
1001
closeWithMask = { false }
995
1002
/>
@@ -1214,7 +1221,7 @@ const TemplatePlaceholder = () => {
1214
1221
</ div >
1215
1222
) }
1216
1223
</ DndProvider >
1217
- < div >
1224
+ < div data-tut = "reactourAddbtn--observe" >
1218
1225
< AddRoleModal
1219
1226
isModalRole = { isModalRole }
1220
1227
roleName = { roleName }
0 commit comments