diff --git a/pvc-vue/src/components/general/VMSearchBar.vue b/pvc-vue/src/components/general/VMSearchBar.vue
index df36920..0091e45 100644
--- a/pvc-vue/src/components/general/VMSearchBar.vue
+++ b/pvc-vue/src/components/general/VMSearchBar.vue
@@ -5,13 +5,12 @@
class="btn btn-outline-secondary list-toggle-btn"
@click="toggleList"
:class="{
- 'active': showList,
- 'filtering': showList && isFilterActive
+ 'active': showList && !isFilterActive,
+ 'filtering': showList && isFilterActive
}"
- :title="showList ? (isFilterActive ? 'Show all VMs' : 'Filter VMs') : 'List VMs'"
+ :title="showList ? (isFilterActive ? 'Show all VMs' : 'Filter VMs') : 'Show VM list'"
>
-
- {{ showList ? (isFilterActive ? 'Filtering' : 'All VMs') : 'List VMs' }}
+ List VMs
@@ -24,6 +23,7 @@
@focus="handleFocus"
@blur="handleBlur"
@click="handleSearchClick"
+ :class="{ 'search-active': showList && isFilterActive }"
class="form-control search-input"
>