Browse Source

refactor(gui-v2): show feedback form with a delay

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3442/head
Pranav C 2 years ago
parent
commit
53d57bb5ac
  1. 4
      packages/nc-gui-v2/components/tabs/auth/user-management/FeedbackForm.vue

4
packages/nc-gui-v2/components/tabs/auth/user-management/FeedbackForm.vue

@ -2,10 +2,12 @@
import CloseIcon from '~icons/material-symbols/close-rounded' import CloseIcon from '~icons/material-symbols/close-rounded'
const { feedbackForm } = useGlobal() const { feedbackForm } = useGlobal()
const showForm = ref(false)
setTimeout(() => (showForm.value = true), 6000)
</script> </script>
<template> <template>
<div v-if="feedbackForm && !feedbackForm.isHidden" class="nc-feedback-form-wrapper mt-6"> <div v-if="showForm && feedbackForm && !feedbackForm.isHidden" class="nc-feedback-form-wrapper mt-6">
<CloseIcon class="nc-close-icon" @click="feedbackForm.isHidden = true" /> <CloseIcon class="nc-close-icon" @click="feedbackForm.isHidden = true" />
<iframe :src="feedbackForm.url" width="100%" height="500" frameborder="0" marginheight="0" marginwidth="0">Loading </iframe> <iframe :src="feedbackForm.url" width="100%" height="500" frameborder="0" marginheight="0" marginwidth="0">Loading </iframe>

Loading…
Cancel
Save