Skip to content

Commit

Permalink
disable env selector when none
Browse files Browse the repository at this point in the history
  • Loading branch information
lovincyrus committed Dec 6, 2024
1 parent 2e15de0 commit ec46dac
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,13 @@
/>
<DropdownMenu.Root>
<DropdownMenu.Trigger
class="min-w-fit flex flex-row gap-1 items-center rounded-sm border border-slate-300 {isDropdownOpen
? 'bg-slate-200'
: 'hover:bg-slate-100'} px-2 py-1"
class={`min-w-fit flex flex-row gap-1 items-center rounded-sm border border-slate-300 ${
isDropdownOpen ? "bg-slate-200" : "hover:bg-slate-100"
} px-2 py-1 ${
projectVariables.length === 0
? "opacity-50 cursor-not-allowed pointer-events-none"
: ""
}`}
>
<span class="text-slate-600 font-medium">{environmentLabel}</span>
{#if isDropdownOpen}
Expand Down

0 comments on commit ec46dac

Please sign in to comment.