1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 20:15:26 +02:00

Remove redundant comment/feedback feature

Enterprise edition contains the feedbacl/comment feature and Community edition should not show this.

Closes #272
This commit is contained in:
McMatts 2019-05-30 10:41:09 +01:00
parent fe7548cd97
commit 91a3c59cd2
3 changed files with 15 additions and 24 deletions

View file

@ -24,22 +24,9 @@
<Layout::Grid::Sidebar>
<div class="sidebar-content">
<Layout::Grid::SidebarGoTop />
<div class="section">
<div class="text-center">
{{#ui/ui-toolbar dark=false light=true raised=true large=false bordered=true}}
{{ui/ui-toolbar-icon icon=constants.Icon.Index color=constants.Color.Gray tooltip="Table of contents"
selected=(eq sidebarTab "toc") onClick=(action "onSidebarChange" "toc")}}
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
{{ui/ui-toolbar-icon icon=constants.Icon.Chat color=constants.Color.Gray tooltip="Comments & Feedback"
selected=(eq sidebarTab "feedback") onClick=(action "onSidebarChange" "feedback")}}
{{/if}}
{{/ui/ui-toolbar}}
</div>
</div>
<Ui::UiSpacer @size="200" />
{{#if (eq sidebarTab "toc")}}
{{document/sidebar-toc
page=page
roles=roles
@ -51,13 +38,6 @@
onShowPage=(action "onShowPage")
onPageLevelChange=(action "onPageLevelChange")
onPageSequenceChange=(action "onPageSequenceChange")}}
{{/if}}
{{#if (eq sidebarTab "feedback")}}
{{enterprise/sidebar-feedback
document=document
permissions=permissions}}
{{/if}}
</div>
</Layout::Grid::Sidebar>