fix: Brand installation name not showing (#12861)

# Pull Request Template

## Description

Fixes
https://linear.app/chatwoot/issue/CW-5946/fix-brand-installation-name-issue-in-dyte

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [ ] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
This commit is contained in:
Sivin Varghese
2025-11-13 22:16:25 +05:30
committed by GitHub
parent 651645fbd2
commit eed1825d5a
2 changed files with 8 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ import { mapGetters } from 'vuex';
import { useAlert } from 'dashboard/composables';
import { useIntegrationHook } from 'dashboard/composables/useIntegrationHook';
import { FormKit } from '@formkit/vue';
import { useBranding } from 'shared/composables/useBranding';
import NextButton from 'dashboard/components-next/button/Button.vue';
@@ -23,8 +24,9 @@ export default {
const { integration, isHookTypeInbox } = useIntegrationHook(
props.integrationId
);
const { replaceInstallationName } = useBranding();
return { integration, isHookTypeInbox };
return { integration, isHookTypeInbox, replaceInstallationName };
},
data() {
return {
@@ -117,7 +119,7 @@ export default {
<div class="flex flex-col h-auto overflow-auto integration-hooks">
<woot-modal-header
:header-title="integration.name"
:header-content="integration.short_description"
:header-content="replaceInstallationName(integration.short_description)"
/>
<FormKit
v-model="values"

View File

@@ -1,6 +1,7 @@
<script setup>
import { defineProps, defineEmits } from 'vue';
import { useIntegrationHook } from 'dashboard/composables/useIntegrationHook';
import { useBranding } from 'shared/composables/useBranding';
import Button from 'dashboard/components-next/button/Button.vue';
const props = defineProps({
@@ -15,6 +16,8 @@ defineEmits(['add', 'delete']);
const { integration, hasConnectedHooks } = useIntegrationHook(
props.integrationId
);
const { replaceInstallationName } = useBranding();
</script>
<template>
@@ -37,7 +40,7 @@ const { integration, hasConnectedHooks } = useIntegrationHook(
{{ integration.name }}
</h3>
<p class="text-n-slate-11 text-sm leading-6">
{{ integration.description }}
{{ replaceInstallationName(integration.description) }}
</p>
</div>
<div class="flex justify-center items-center mb-0 w-[15%]">