mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.0 KiB
47 lines
1.0 KiB
3 years ago
|
<template>
|
||
2 years ago
|
<div v-if="!feedbackFormIsHidden" class="nc-feedback-form-wrapper">
|
||
|
<v-icon class="nc-close-icon" large @click="feedbackFormIsHidden = true"> mdi-close-circle-outline </v-icon>
|
||
3 years ago
|
|
||
2 years ago
|
<iframe :src="feedbackFormUrl" width="100%" height="500" frameborder="0" marginheight="0" marginwidth="0"
|
||
|
>Loading…
|
||
3 years ago
|
</iframe>
|
||
|
</div>
|
||
|
<div v-else />
|
||
3 years ago
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
3 years ago
|
name: 'FeedbackForm',
|
||
|
computed: {
|
||
2 years ago
|
feedbackFormIsHidden: {
|
||
3 years ago
|
get() {
|
||
2 years ago
|
return this.$store.state.settings.feedbackForm.isHidden;
|
||
2 years ago
|
},
|
||
2 years ago
|
set(isHidden) {
|
||
|
this.$store.commit('settings/MutFeedbackForm', { ...this.$store.state.settings.feedbackForm, isHidden });
|
||
2 years ago
|
},
|
||
2 years ago
|
},
|
||
2 years ago
|
feedbackFormUrl() {
|
||
2 years ago
|
return this.$store.state.settings.feedbackForm.url;
|
||
|
},
|
||
|
},
|
||
|
};
|
||
3 years ago
|
</script>
|
||
|
|
||
3 years ago
|
<style scoped lang="scss">
|
||
|
.nc-feedback-form-wrapper {
|
||
|
width: 100%;
|
||
|
position: relative;
|
||
|
|
||
|
iframe {
|
||
|
margin: 0 auto;
|
||
|
}
|
||
3 years ago
|
|
||
3 years ago
|
.nc-close-icon {
|
||
|
position: absolute;
|
||
|
top: 5px;
|
||
|
right: 10px;
|
||
|
}
|
||
|
}
|
||
3 years ago
|
</style>
|