mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
add a setting to config.json that allows users to set theme (#5584)
This commit is contained in:
parent
59a615cf21
commit
a42ed1fb89
1
ui/public/config.json
vendored
1
ui/public/config.json
vendored
@ -57,5 +57,6 @@
|
||||
"plugins": [],
|
||||
"basicZoneEnabled": true,
|
||||
"multipleServer": false,
|
||||
"allowSettingTheme": true,
|
||||
"docHelpMappings": {}
|
||||
}
|
||||
|
||||
@ -65,7 +65,7 @@
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
<template v-if="isDevelopmentMode">
|
||||
<template v-if="isDevelopmentMode || allowSettingTheme">
|
||||
<drawer :visible="showSetting" placement="right">
|
||||
<div slot="handler">
|
||||
<a-button type="primary" size="large">
|
||||
@ -146,6 +146,9 @@ export default {
|
||||
isDevelopmentMode () {
|
||||
return process.env.NODE_ENV === 'development'
|
||||
},
|
||||
allowSettingTheme () {
|
||||
return this.$config.allowSettingTheme
|
||||
},
|
||||
contentPaddingLeft () {
|
||||
if (!this.fixSidebar || this.isMobile()) {
|
||||
return '0'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user