Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

:bug: Fixed primary theme swatch active state

Liyas Thomas8e0adc9514f8
diff --git a/pages/settings.vue b/pages/settings.vue
index d4ff6f99c..98ec14d17 100644
--- a/pages/settings.vue
+++ b/pages/settings.vue
@@ -12,14 +12,14 @@
/>
<i v-else class="material-icons">account_circle</i>
<span>
- {{ fb.currentUser.displayName || "Name not found" }}
+ {{ fb.currentUser.displayName || $t("nothing_found") }}
</span>
</button>
<br />
<button class="icon">
<i class="material-icons">email</i>
<span>
- {{ fb.currentUser.email || "Email not found" }}
+ {{ fb.currentUser.email || $t("nothing_found") }}
</span>
</button>
<br />
@@ -95,7 +95,7 @@
:color="theme.color"
:name="theme.name"
class="bg"
- ></swatch>
+ />
</span>
</div>
</li>
@@ -106,7 +106,7 @@
<div class="colors">
<span
:key="entry.color"
- @click.prevent="setActiveColor(entry.color, entry.vibrant)"
+ @click="setActiveColor(entry.color, entry.vibrant)"
v-for="entry in colors"
>
<swatch
@@ -327,10 +327,12 @@ export default {
settings: {
SCROLL_INTO_ENABLED:
- typeof this.$store.state.postwoman.settings.SCROLL_INTO_ENABLED !== "undefined"
+ typeof this.$store.state.postwoman.settings.SCROLL_INTO_ENABLED !==
+ "undefined"
? this.$store.state.postwoman.settings.SCROLL_INTO_ENABLED
: true,
+ THEME_CLASS: "",
THEME_COLOR: "",
THEME_TAB_COLOR: "",
THEME_COLOR_VIBRANT: true,