fix: Update Re-rendering behaviour for lists in conversation view (#3117)

* fix: Update Re-rendering behaviour for lists in conversation view

* Remove console.log
This commit is contained in:
Pranav Raj S
2021-09-30 15:11:00 +05:30
committed by GitHub
parent a1563917ba
commit 1083a24a26
3 changed files with 13 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
<div class="row app-wrapper"> <div class="row app-wrapper">
<sidebar :route="currentRoute" :class="sidebarClassName"></sidebar> <sidebar :route="currentRoute" :class="sidebarClassName"></sidebar>
<section class="app-content columns" :class="contentClassName"> <section class="app-content columns" :class="contentClassName">
<router-view :key="$route.path"></router-view> <router-view></router-view>
</section> </section>
</div> </div>
</template> </template>

View File

@@ -9,9 +9,10 @@
:back-url="backUrl" :back-url="backUrl"
:show-new-button="showNewButton" :show-new-button="showNewButton"
/> />
<keep-alive> <keep-alive v-if="keepAlive">
<router-view></router-view> <router-view></router-view>
</keep-alive> </keep-alive>
<router-view v-else></router-view>
</div> </div>
</template> </template>
@@ -27,6 +28,10 @@ export default {
headerTitle: String, headerTitle: String,
headerButtonText: String, headerButtonText: String,
icon: String, icon: String,
keepAlive: {
type: Boolean,
default: true,
},
newButtonRoutes: { newButtonRoutes: {
type: Array, type: Array,
default: () => [], default: () => [],

View File

@@ -14,6 +14,7 @@ export default {
props: { props: {
headerTitle: 'REPORT.HEADER', headerTitle: 'REPORT.HEADER',
icon: 'ion-arrow-graph-up-right', icon: 'ion-arrow-graph-up-right',
keepAlive: false,
}, },
children: [ children: [
{ {
@@ -34,6 +35,7 @@ export default {
props: { props: {
headerTitle: 'CSAT_REPORTS.HEADER', headerTitle: 'CSAT_REPORTS.HEADER',
icon: 'ion-happy-outline', icon: 'ion-happy-outline',
keepAlive: false,
}, },
children: [ children: [
{ {
@@ -49,7 +51,8 @@ export default {
component: SettingsContent, component: SettingsContent,
props: { props: {
headerTitle: 'AGENT_REPORTS.HEADER', headerTitle: 'AGENT_REPORTS.HEADER',
icon: 'ion-people', icon: 'ion-ios-people',
keepAlive: false,
}, },
children: [ children: [
{ {
@@ -66,6 +69,7 @@ export default {
props: { props: {
headerTitle: 'LABEL_REPORTS.HEADER', headerTitle: 'LABEL_REPORTS.HEADER',
icon: 'ion-pricetags', icon: 'ion-pricetags',
keepAlive: false,
}, },
children: [ children: [
{ {
@@ -82,6 +86,7 @@ export default {
props: { props: {
headerTitle: 'INBOX_REPORTS.HEADER', headerTitle: 'INBOX_REPORTS.HEADER',
icon: 'ion-archive', icon: 'ion-archive',
keepAlive: false,
}, },
children: [ children: [
{ {