Skip to content

Commit

Permalink
if webdav not enabled, do not show webdav integration account settings (
Browse files Browse the repository at this point in the history
#12569)

[FIX] Webdav integration account settings were being shown even when Webdav was disabled
  • Loading branch information
karakayasemi authored and rodrigok committed Dec 20, 2018
1 parent 1d1028d commit dda0fdf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/rocketchat-ui-account/client/accountFlex.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ <h1 class="sidebar-flex__title">{{_ "My_Account"}}</h1>
{{/if}}

{{> sidebarItem menuItem "Security" "lock" "account" "security" }}

{{#if encryptionEnabled}}
{{> sidebarItem menuItem "Encryption" "key" "account" "encryption" }}
{{/if}}

{{> sidebarItem menuItem "Integrations" "code" "account" "integrations" }}
{{#if webdavIntegrationEnabled}}
{{> sidebarItem menuItem "Integrations" "code" "account" "integrations" }}
{{/if}}

{{#if accessTokensEnabled}}
{{> sidebarItem menuItem "Personal_Access_Tokens" "key" "account" "tokens" }}
Expand Down
3 changes: 3 additions & 0 deletions packages/rocketchat-ui-account/client/accountFlex.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ Template.accountFlex.helpers({
encryptionEnabled() {
return RocketChat.settings.get('E2E_Enable');
},
webdavIntegrationEnabled() {
return RocketChat.settings.get('Webdav_Integration_Enabled');
},
menuItem(name, icon, section, group) {
return {
name: t(name),
Expand Down

0 comments on commit dda0fdf

Please sign in to comment.