mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-07 14:44:52 +02:00
allow grouping when filter applied
This commit is contained in:
@@ -78,8 +78,9 @@ export function LauncherSettingsMenu({
|
||||
<SelectItem
|
||||
value="site"
|
||||
disabled={
|
||||
isCompactMode ||
|
||||
!capabilities.allowSiteGrouping
|
||||
!capabilities.allowSiteGrouping ||
|
||||
(isCompactMode &&
|
||||
config.siteIds.length === 0)
|
||||
}
|
||||
>
|
||||
{t("resourceLauncherGroupBySite")}
|
||||
@@ -87,8 +88,9 @@ export function LauncherSettingsMenu({
|
||||
<SelectItem
|
||||
value="label"
|
||||
disabled={
|
||||
isCompactMode ||
|
||||
!capabilities.allowLabelGrouping
|
||||
!capabilities.allowLabelGrouping ||
|
||||
(isCompactMode &&
|
||||
config.labelIds.length === 0)
|
||||
}
|
||||
>
|
||||
{t("resourceLauncherGroupByLabel")}
|
||||
@@ -97,7 +99,7 @@ export function LauncherSettingsMenu({
|
||||
</Select>
|
||||
{isCompactMode ? (
|
||||
<p className="text-xs text-muted-foreground">
|
||||
{t("resourceLauncherCompactGroupingLocked")}
|
||||
{t("resourceLauncherCompactGroupingHint")}
|
||||
</p>
|
||||
) : null}
|
||||
{!isCompactMode && !capabilities.allowSiteGrouping ? (
|
||||
|
||||
@@ -549,12 +549,6 @@ export default function ResourceLauncher({
|
||||
</div>
|
||||
)}
|
||||
|
||||
{scale.mode === "compact" && !showSearchFirstGate ? (
|
||||
<p className="mb-4 text-sm text-muted-foreground">
|
||||
{t("resourceLauncherCompactModeHint")}
|
||||
</p>
|
||||
) : null}
|
||||
|
||||
{showSearchFirstGate ? (
|
||||
<LauncherSearchFirstGate layout={config.layout} />
|
||||
) : showGroupList ? (
|
||||
|
||||
Reference in New Issue
Block a user