mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: disbaled shortcuts whne blocked
This commit is contained in:
@@ -46,8 +46,7 @@
|
||||
{
|
||||
callback: toggleCommandCenter,
|
||||
keys: ['k'],
|
||||
ctrl: true,
|
||||
forceEnable: true
|
||||
ctrl: true
|
||||
},
|
||||
{
|
||||
label: 'Toggle debug overlay',
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user