Skip to content

Commit

Permalink
fix: option highlighting
Browse files Browse the repository at this point in the history
Signed-off-by: Svetoslav Borislavov <[email protected]>
  • Loading branch information
SvetBorislavov committed Jan 15, 2025
1 parent d38f5c7 commit 2353945
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,19 @@ onBeforeMount(() => {
<AppButton
class="rounded-3 text-nowrap"
:class="{
active: networkStore.network === network,
'text-body': networkStore.network !== network,
active: networkStore.network === network && !isCustomSettingsVisible,
'text-body': networkStore.network !== network && !isCustomSettingsVisible,
}"
:color="networkStore.network === network ? 'primary' : undefined"
:color="
networkStore.network === network && !isCustomSettingsVisible ? 'primary' : undefined
"
@click="handleCommonNetwork(network)"
:data-testid="`tab-network-${network}`"
>{{ CommonNetworkNames[network] }}</AppButton
>
</template>
<AppButton
:color="isCustomActive ? 'primary' : undefined"
:color="isCustomActive || isCustomSettingsVisible ? 'primary' : undefined"
data-testid="tab-network-custom"
class="rounded-3 text-nowrap"
:class="{
Expand Down

0 comments on commit 2353945

Please sign in to comment.