mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
ui: Hide settings button if not on development mode (#5431)
* Display colors Save settings only in dev mode * Hide entirely the dic section if not on dev * Hide the settings floating widget if not on development
This commit is contained in:
parent
eba577c0a9
commit
35efdd1842
@ -63,7 +63,7 @@
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
<template>
|
||||
<template v-if="isDevelopmentMode">
|
||||
<drawer :visible="showSetting" placement="right">
|
||||
<div slot="handler">
|
||||
<a-button type="primary" size="large">
|
||||
@ -129,6 +129,9 @@ export default {
|
||||
...mapState({
|
||||
mainMenu: state => state.permission.addRouters
|
||||
}),
|
||||
isDevelopmentMode () {
|
||||
return process.env.NODE_ENV === 'development'
|
||||
},
|
||||
contentPaddingLeft () {
|
||||
if (!this.fixSidebar || this.isMobile()) {
|
||||
return '0'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user