Skip to content

Commit 9d6aba4

Browse files
committed
feat(NcAppSidebar): provide 'noClose' prop for customization
Signed-off-by: Maksim Sukharev <[email protected]>
1 parent 679c2d0 commit 9d6aba4

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/components/NcAppSidebar/NcAppSidebar.vue

+10-3
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,8 @@ export default {
668668
<slot name="content" />
669669
</div>
670670

671-
672-
<NcButton ref="closeButton"
671+
<NcButton v-if="!noClose"
672+
ref="closeButton"
673673
:aria-label="closeTranslated"
674674
:title="closeTranslated"
675675
class="app-sidebar__close"
@@ -840,7 +840,14 @@ export default {
840840
type: Boolean,
841841
default: false,
842842
},
843-
843+
/**
844+
* Do not show the close button for the sidebar.
845+
* @default false
846+
*/
847+
noClose: {
848+
type: Boolean,
849+
default: false,
850+
},
844851
/**
845852
* Force the actions to display in a three dot menu
846853
*/

0 commit comments

Comments
 (0)