File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -907,7 +907,6 @@ function PlaceHolderSign() {
907
907
updateExpiryDate . setDate ( updateExpiryDate . getDate ( ) + addExtraDays ) ;
908
908
//filter label widgets after add label widgets data on pdf
909
909
const filterPrefill = signerPos . filter ( ( data ) => data . Role !== "prefill" ) ;
910
-
911
910
try {
912
911
if ( updateExpiryDate ) {
913
912
data = {
@@ -1769,7 +1768,10 @@ function PlaceHolderSign() {
1769
1768
) }
1770
1769
1771
1770
{ ! isSubscribe && isEnableSubscription && (
1772
- < Upgrade message = "Upgrade to customize Email" />
1771
+ < Upgrade
1772
+ message = "Upgrade to customize Email"
1773
+ newWindow = { true }
1774
+ />
1773
1775
) }
1774
1776
</ div >
1775
1777
</ >
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import { useNavigate } from "react-router-dom" ;
3
+ import { openInNewTab } from "../constant/Utils" ;
3
4
4
- function Upgrade ( { message } ) {
5
+ function Upgrade ( { message, newWindow } ) {
5
6
const navigation = useNavigate ( ) ;
6
7
7
8
return (
8
9
< sup >
9
10
< span
10
- onClick = { ( ) => navigation ( "/subscription" ) }
11
+ onClick = { ( ) => {
12
+ if ( newWindow ) {
13
+ const url = window . location . origin + "/subscription" ;
14
+ openInNewTab ( url ) ;
15
+ } else {
16
+ navigation ( "/subscription" ) ;
17
+ }
18
+ } }
11
19
className = "text-blue-800 text-sm cursor-pointer underline"
12
20
>
13
21
{ message ? message : "Upgrade now" }
You can’t perform that action at this time.
0 commit comments