diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-09-05 18:12:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-05 18:12:55 -0400 |
commit | df085d273d7ed3fe0d53b78364da46cdd6429c53 (patch) | |
tree | 9fee7f44a9304498ec969a51e16e48351d361d97 /webapp/components/admin_console/admin_sidebar.jsx | |
parent | e30e4cfe3d787e2528419b0d17973eb0fc162d56 (diff) | |
download | chat-df085d273d7ed3fe0d53b78364da46cdd6429c53.tar.gz chat-df085d273d7ed3fe0d53b78364da46cdd6429c53.tar.bz2 chat-df085d273d7ed3fe0d53b78364da46cdd6429c53.zip |
Experimental plugin system console UI (#7338)
* Add system console UI for uploading/listing/removing plugins
* Add localization strings
* Add banner to plugin settings
* Updating UI for experimental plugins (#7362)
* Text updates
* Updating UI for experimental plugin stuff (#7377)
* Properly clear file input after upload
Diffstat (limited to 'webapp/components/admin_console/admin_sidebar.jsx')
-rw-r--r-- | webapp/components/admin_console/admin_sidebar.jsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/webapp/components/admin_console/admin_sidebar.jsx b/webapp/components/admin_console/admin_sidebar.jsx index 9a726c65c..4918cdac0 100644 --- a/webapp/components/admin_console/admin_sidebar.jsx +++ b/webapp/components/admin_console/admin_sidebar.jsx @@ -60,6 +60,7 @@ export default class AdminSidebar extends React.Component { let metricsSettings = null; let complianceSettings = null; let mfaSettings = null; + let pluginSettings = null; let license = null; let audits = null; @@ -277,6 +278,20 @@ export default class AdminSidebar extends React.Component { ); } + if (window.mm_config.PluginsEnabled === 'true' && window.mm_license.IsLicensed === 'true') { + pluginSettings = ( + <AdminSidebarSection + name='plugins' + title={ + <FormattedMessage + id='admin.sidebar.plugins' + defaultMessage='Plugins (experimental)' + /> + } + /> + ); + } + const SHOW_CLIENT_VERSIONS = false; let clientVersions = null; if (SHOW_CLIENT_VERSIONS) { @@ -562,6 +577,7 @@ export default class AdminSidebar extends React.Component { /> } /> + {pluginSettings} </AdminSidebarSection> <AdminSidebarSection name='files' |