if webdav not enabled, do not show webdav integration account settings (#12569)

[FIX] Webdav integration account settings were being shown even when Webdav was disabled
pull/9748/head
Semih Serhat Karakaya 7 years ago committed by Rodrigo Nascimento
parent 717b536963
commit 7608b18390
  1. 6
      packages/rocketchat-ui-account/client/accountFlex.html
  2. 3
      packages/rocketchat-ui-account/client/accountFlex.js

@ -17,12 +17,14 @@
{{/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" }}

@ -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),

Loading…
Cancel
Save