You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by sh...@apache.org on 2022/09/14 07:27:04 UTC

[cloudstack] branch 4.17 updated: UI fix Theme text color not bind navTextColorPick and reset button (#6721)

This is an automated email from the ASF dual-hosted git repository.

shwstppr pushed a commit to branch 4.17
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.17 by this push:
     new c3d6f42dd9d  UI fix Theme text color not bind navTextColorPick and reset button (#6721)
c3d6f42dd9d is described below

commit c3d6f42dd9d2acf9ae85fa42c5532225c2c232b4
Author: hooklee2000 <52...@users.noreply.github.com>
AuthorDate: Wed Sep 14 15:26:58 2022 +0800

     UI fix Theme text color not bind navTextColorPick and reset button (#6721)
    
    UI fix Theme text color not bind navTextColorPick fix #6720
---
 ui/src/components/view/Setting.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ui/src/components/view/Setting.vue b/ui/src/components/view/Setting.vue
index fe612ecf271..4987a0bd612 100644
--- a/ui/src/components/view/Setting.vue
+++ b/ui/src/components/view/Setting.vue
@@ -70,7 +70,7 @@
               <a-input
                 :disabled="layoutMode === 'dark'"
                 type="color"
-                v-model:value="navBgColorPick"
+                v-model:value="navTextColorPick"
                 @blur="(e) => updateSetting('@navigation-text-color', e.target.value)" />
             </div>
           </div>
@@ -254,6 +254,7 @@ export default {
       this.downloadObjectAsJson(this.uiSettings)
     },
     resetSetting () {
+      this.uiSettings = {}
       this.layoutMode = 'light'
       this.colorPick = this.originalSetting['@primary-color']
       this.navBgColorPick = this.originalSetting['@navigation-background-color']