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": [],
|
"plugins": [],
|
||||||
"basicZoneEnabled": true,
|
"basicZoneEnabled": true,
|
||||||
"multipleServer": false,
|
"multipleServer": false,
|
||||||
|
"allowSettingTheme": true,
|
||||||
"docHelpMappings": {}
|
"docHelpMappings": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -65,7 +65,7 @@
|
|||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-if="isDevelopmentMode">
|
<template v-if="isDevelopmentMode || allowSettingTheme">
|
||||||
<drawer :visible="showSetting" placement="right">
|
<drawer :visible="showSetting" placement="right">
|
||||||
<div slot="handler">
|
<div slot="handler">
|
||||||
<a-button type="primary" size="large">
|
<a-button type="primary" size="large">
|
||||||
@ -146,6 +146,9 @@ export default {
|
|||||||
isDevelopmentMode () {
|
isDevelopmentMode () {
|
||||||
return process.env.NODE_ENV === 'development'
|
return process.env.NODE_ENV === 'development'
|
||||||
},
|
},
|
||||||
|
allowSettingTheme () {
|
||||||
|
return this.$config.allowSettingTheme
|
||||||
|
},
|
||||||
contentPaddingLeft () {
|
contentPaddingLeft () {
|
||||||
if (!this.fixSidebar || this.isMobile()) {
|
if (!this.fixSidebar || this.isMobile()) {
|
||||||
return '0'
|
return '0'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user