fix: disbaled shortcuts whne blocked

This commit is contained in:
Harsh Mahajan
2026-03-26 16:42:17 +05:30
parent bb309de309
commit 87619eed7b
3 changed files with 4 additions and 3 deletions
+1 -2
View File
@@ -46,8 +46,7 @@
{
callback: toggleCommandCenter,
keys: ['k'],
ctrl: true,
forceEnable: true
ctrl: true
},
{
label: 'Toggle debug overlay',
+1
View File
@@ -203,6 +203,7 @@
<Button.Button
variant="text"
aria-label="Toggle Command Center"
disabled={isProjectBlocked}
on:click={toggleCommandCenter}
icon>
<Icon icon={IconSearch} />
@@ -5,7 +5,7 @@
import { project, stats } from './store';
import { goto } from '$app/navigation';
import { registerCommands, registerSearchers } from '$lib/commandCenter';
import { disableCommands, registerCommands, registerSearchers } from '$lib/commandCenter';
import {
bucketSearcher,
@@ -39,6 +39,7 @@
export let data: LayoutData;
$: isProjectBlocked = getIsProjectBlocked(data.project);
$: $disableCommands(isProjectBlocked);
$: allOrgsHavePremiumSupport = $organizationList.teams.every(
(team) => (team as Models.Organization).billingPlanDetails.premiumSupport
);