refactor: load terms and privacy policy from env variables in dashboard login page (#79)
This commit is contained in:
committed by
GitHub
parent
0dba28c388
commit
a4781d5882
@@ -78,18 +78,21 @@
|
||||
</div>
|
||||
|
||||
<section class="mt-15">
|
||||
<div v-if="mode === 'sign-in'" class="text-secondaryLight text-tiny">
|
||||
<div
|
||||
v-if="mode === 'sign-in' && tosLink && privacyPolicyLink"
|
||||
class="text-secondaryLight text-tiny"
|
||||
>
|
||||
By signing in, you are agreeing to our
|
||||
<HoppSmartAnchor
|
||||
class="link"
|
||||
to="https://docs.hoppscotch.io/terms"
|
||||
:to="tosLink"
|
||||
blank
|
||||
label="Terms of Service"
|
||||
/>
|
||||
and
|
||||
<HoppSmartAnchor
|
||||
class="link"
|
||||
to="https://docs.hoppscotch.io/privacy"
|
||||
:to="privacyPolicyLink"
|
||||
blank
|
||||
label="Privacy Policy"
|
||||
/>
|
||||
@@ -133,6 +136,9 @@ const { subscribeToStream } = useStreamSubscriber();
|
||||
|
||||
const toast = useToast();
|
||||
|
||||
const tosLink = import.meta.env.VITE_APP_TOS_LINK;
|
||||
const privacyPolicyLink = import.meta.env.VITE_APP_PRIVACY_POLICY_LINK;
|
||||
|
||||
// DATA
|
||||
|
||||
const form = ref({
|
||||
|
||||
Reference in New Issue
Block a user