refactor(EnvelopeLocked): add if smsExpiration-statetment to timer script
This commit is contained in:
parent
eafcd79749
commit
06431028cb
@ -96,6 +96,8 @@
|
|||||||
</details>
|
</details>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
@if (smsExpiration is not null)
|
||||||
|
{
|
||||||
<script nonce="@nonce">
|
<script nonce="@nonce">
|
||||||
var expiration = new Date(@Html.Raw(JsonConvert.SerializeObject(smsExpiration)));
|
var expiration = new Date(@Html.Raw(JsonConvert.SerializeObject(smsExpiration)));
|
||||||
|
|
||||||
@ -121,4 +123,5 @@
|
|||||||
var remainingTime = `${formattedMinutes}:${formattedSeconds}`;
|
var remainingTime = `${formattedMinutes}:${formattedSeconds}`;
|
||||||
element.textContent = remainingTime;
|
element.textContent = remainingTime;
|
||||||
}, 1000);
|
}, 1000);
|
||||||
</script>
|
</script>
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user