UPD: Hide category adding for now

This commit is contained in:
Robert Kossessa
2024-06-01 20:03:43 +02:00
parent 7f5e227b3f
commit feef2ca443
2 changed files with 13 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
<Collapsible v-model:open="expanded" :default-open="true"> <Collapsible v-model:open="expanded" :default-open="true">
<!-- TODO: Make profile groups computed instead defining them of using v-for --> <!-- TODO: Make profile groups computed instead defining them of using v-for -->
<div <div
v-if="false"
class="group flex h-12 w-full items-center justify-between border-0 border-b bg-zinc-900 py-2 text-left text-sm text-muted-foreground" class="group flex h-12 w-full items-center justify-between border-0 border-b bg-zinc-900 py-2 text-left text-sm text-muted-foreground"
> >
<CollapsibleTrigger class="group flex min-w-0 items-center gap-2"> <CollapsibleTrigger class="group flex min-w-0 items-center gap-2">

View File

@@ -41,7 +41,16 @@
<X class="h-5" /> <X class="h-5" />
</button> </button>
</Transition> </Transition>
<DropdownMenu> <Transition name="fade">
<button
v-if="!appStore.showProfileConfig"
class="flex aspect-square h-8 items-center justify-center rounded-lg border border-zinc-100 bg-zinc-300 text-black hover:bg-zinc-200"
@click="deviceStore.createProfile"
>
<Plus class="h-4" />
</button>
</Transition>
<DropdownMenu v-if="false">
<DropdownMenuTrigger> <DropdownMenuTrigger>
<Transition name="fade"> <Transition name="fade">
<button <button
@@ -54,7 +63,7 @@
</DropdownMenuTrigger> </DropdownMenuTrigger>
<DropdownMenuContent> <DropdownMenuContent>
<DropdownMenuItem @click="deviceStore.createProfile"> Profile </DropdownMenuItem> <DropdownMenuItem @click="deviceStore.createProfile"> Profile </DropdownMenuItem>
<DropdownMenuItem> Category </DropdownMenuItem> <DropdownMenuItem v-if="false"> Category </DropdownMenuItem>
</DropdownMenuContent> </DropdownMenuContent>
</DropdownMenu> </DropdownMenu>
</div> </div>
@@ -134,7 +143,7 @@ const dragOptions = ref({
direction: 'vertical' direction: 'vertical'
}) })
const maxProfiles = 32 const maxProfiles = 10
const renderProfileConfig = ref(appStore.showProfileConfig) const renderProfileConfig = ref(appStore.showProfileConfig)
const renderProfileList = ref(!appStore.showProfileConfig) const renderProfileList = ref(!appStore.showProfileConfig)