Skip to content

Commit a7ab7ff

Browse files
committed
feat(NcAppSidebar): provide 'noClose' prop for customization
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
1 parent 1c44f3a commit a7ab7ff

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/components/NcAppSidebar/NcAppSidebar.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,8 @@ export default {
665665
</div>
666666
</div>
667667

668-
<NcButton ref="closeButton"
668+
<NcButton v-if="!noClose"
669+
ref="closeButton"
669670
:aria-label="closeTranslated"
670671
:title="closeTranslated"
671672
class="app-sidebar__close"
@@ -836,7 +837,14 @@ export default {
836837
type: Boolean,
837838
default: false,
838839
},
839-
840+
/**
841+
* Do not show the close button for the sidebar.
842+
* @default false
843+
*/
844+
noClose: {
845+
type: Boolean,
846+
default: false,
847+
},
840848
/**
841849
* Force the actions to display in a three dot menu
842850
*/

0 commit comments

Comments
 (0)