Merge branch 'master' into budi-8705-v3-view-joins-required-columns-cant-be-changed-to-read-only
This commit is contained in:
commit
5197c3eac5
|
@ -14,7 +14,13 @@
|
|||
function daysUntilCancel() {
|
||||
const cancelAt = license?.billing?.subscription?.cancelAt
|
||||
const diffTime = Math.abs(cancelAt - new Date().getTime()) / 1000
|
||||
return Math.floor(diffTime / oneDayInSeconds)
|
||||
const days = Math.floor(diffTime / oneDayInSeconds)
|
||||
if (days === 1) {
|
||||
return "tomorrow."
|
||||
} else if (days === 0) {
|
||||
return "today."
|
||||
}
|
||||
return `in ${days} days.`
|
||||
}
|
||||
</script>
|
||||
|
||||
|
@ -28,7 +34,7 @@
|
|||
extraLinkAction={$licensing.goToUpgradePage}
|
||||
showCloseButton={false}
|
||||
>
|
||||
Your free trial will end in {daysUntilCancel()} days.
|
||||
Your free trial will end {daysUntilCancel()}
|
||||
</Banner>
|
||||
</div>
|
||||
{/if}
|
||||
|
|
Loading…
Reference in New Issue