Skip to content

Commit

Permalink
Update Typebot.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
wkarts authored Sep 8, 2024
1 parent b3e2cca commit 269bd73
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions app/javascript/dashboard/routes/dashboard/Typebot.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
<template>
<div class="typebot-integration">
<h1>{{ $t('TYPEBOT.HEADER') }}</h1>
<iframe
v-if="settings.frontend_url"
:src="settings.frontend_url"
width="100%"
height="800"
frameborder="0"
allowfullscreen
></iframe>
<h1>{{ $t('typebot.name') }}</h1>
<iframe v-if="settings.frontend_url" :src="settings.frontend_url" class="typebot-iframe"></iframe>
</div>
</template>

Expand All @@ -20,26 +13,25 @@ export default {
data() {
return {
settings: {
frontend_url: '', // Apenas a URL do frontend
frontend_url: '',
},
};
},
async created() {
const response = await typebotAPI.getSettings(); // Carrega as configurações
this.settings = response.data.settings;
const response = await typebotAPI.getSettings();
this.settings = response.data;
},
};
</script>

<style scoped>
.typebot-integration {
max-width: 100%;
margin: 0 auto;
padding: 20px;
height: 100%;
}
iframe {
.typebot-iframe {
width: 100%;
height: 800px;
height: 600px;
border: none;
}
</style>

0 comments on commit 269bd73

Please sign in to comment.