chore: Add help-text for slack integration (#2409)

This commit is contained in:
Sojan Jose 2021-06-23 11:52:06 +05:30 committed by GitHub
parent bd9bac75ad
commit 640e028bde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 0 deletions

View file

@ -63,6 +63,12 @@
} }
} }
}, },
"SLACK": {
"HELP_TEXT" : {
"TITLE": "Using Slack Integration",
"BODY": "<br/><p>Chatwoot will now sync all the incoming conversations into the <b><i>customer-conversations</i></b> channel inside your slack workplace.</p><p>Replying to a conversation thread in <b><i>customer-conversations</i></b> slack channel will create a response back to the customer through chatwoot.</p><p>Start the replies with <b><i>note:</i></b> to create private notes instead of replies.</p><p>If the replier on slack has an agent profile in chatwoot under the same email, the replies will be associated accordingly.</p><p>When the replier doesn't have an associated agent profile, the replies will be made from the bot profile.</p>"
}
},
"DELETE": { "DELETE": {
"BUTTON_TEXT": "Delete", "BUTTON_TEXT": "Delete",
"API": { "API": {

View file

@ -0,0 +1,12 @@
<template>
<div class="row">
<div class="column">
<div class="integration--description">
<h5>{{ $t('INTEGRATION_SETTINGS.SLACK.HELP_TEXT.TITLE') }}</h5>
<p>
<span v-html="$t('INTEGRATION_SETTINGS.SLACK.HELP_TEXT.BODY')"></span>
</p>
</div>
</div>
</div>
</template>

View file

@ -13,6 +13,9 @@
:integration-action="integrationAction()" :integration-action="integrationAction()"
/> />
</div> </div>
<div v-if="integration.enabled" class="small-12 columns integration">
<IntegrationHelpText />
</div>
</div> </div>
</div> </div>
</div> </div>
@ -22,10 +25,12 @@
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import globalConfigMixin from 'shared/mixins/globalConfigMixin'; import globalConfigMixin from 'shared/mixins/globalConfigMixin';
import Integration from './Integration'; import Integration from './Integration';
import IntegrationHelpText from './IntegrationHelpText';
export default { export default {
components: { components: {
Integration, Integration,
IntegrationHelpText,
}, },
mixins: [globalConfigMixin], mixins: [globalConfigMixin],
props: ['integrationId', 'code'], props: ['integrationId', 'code'],