mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
fix: Fix the default article sidebar state (#6191)
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
This commit is contained in:
@@ -113,6 +113,10 @@ const { ARTICLE_STATUS_TYPES } = wootConstants;
|
||||
export default {
|
||||
mixins: [alertMixin, clickaway],
|
||||
props: {
|
||||
isSidebarOpen: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
backButtonLabel: {
|
||||
type: String,
|
||||
default: '',
|
||||
@@ -136,10 +140,9 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isSidebarOpen: false,
|
||||
showActionsDropdown: false,
|
||||
alertMessage: '',
|
||||
ARTICLE_STATUS_TYPES: ARTICLE_STATUS_TYPES,
|
||||
ARTICLE_STATUS_TYPES,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -205,11 +208,9 @@ export default {
|
||||
}
|
||||
},
|
||||
openSidebar() {
|
||||
this.isSidebarOpen = true;
|
||||
this.$emit('open');
|
||||
},
|
||||
closeSidebar() {
|
||||
this.isSidebarOpen = false;
|
||||
this.$emit('close');
|
||||
},
|
||||
openActionsDropdown() {
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
:back-button-label="$t('HELP_CENTER.HEADER.TITLES.ALL_ARTICLES')"
|
||||
:is-updating="isUpdating"
|
||||
:is-saved="isSaved"
|
||||
:is-sidebar-open="showArticleSettings"
|
||||
@back="onClickGoBack"
|
||||
@open="openArticleSettings"
|
||||
@close="closeArticleSettings"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<edit-article-header
|
||||
:back-button-label="$t('HELP_CENTER.HEADER.TITLES.ALL_ARTICLES')"
|
||||
draft-state="saved"
|
||||
:is-sidebar-open="showArticleSettings"
|
||||
@back="onClickGoBack"
|
||||
@open="openArticleSettings"
|
||||
@close="closeArticleSettings"
|
||||
|
||||
Reference in New Issue
Block a user