fix: greptile review comments

This commit is contained in:
Piyush Gupta
2025-10-08 23:24:12 +05:30
parent c91b803933
commit 4576fdfdbb
2 changed files with 19 additions and 21 deletions

View File

@@ -69,7 +69,7 @@ export const identityDALFactory = (db: TDbClient) => {
.replicaNode()(TableName.Identity)
.where((qb) => {
if (searchTerm) {
void qb.whereILike(`${TableName.Identity}.name`, `%${searchTerm}%`);
void qb.whereILike(`name`, `%${searchTerm}%`);
}
})
.count("*")

View File

@@ -132,26 +132,24 @@ const IdentityPanelTable = ({
</IconButton>
</DropdownMenuTrigger>
<DropdownMenuContent sideOffset={2} align="end">
{isInstanceAdmin && (
<DropdownMenuItem
onClick={(e) => {
e.stopPropagation();
handlePopUpOpen("removeServerAdmin", { name, id });
}}
icon={
<div className="relative">
<FontAwesomeIcon icon={faShieldHalved} />
<FontAwesomeIcon
className="absolute -bottom-[0.01rem] -right-1"
size="2xs"
icon={faXmark}
/>
</div>
}
>
Remove Server Admin
</DropdownMenuItem>
)}
<DropdownMenuItem
onClick={(e) => {
e.stopPropagation();
handlePopUpOpen("removeServerAdmin", { name, id });
}}
icon={
<div className="relative">
<FontAwesomeIcon icon={faShieldHalved} />
<FontAwesomeIcon
className="absolute -bottom-[0.01rem] -right-1"
size="2xs"
icon={faXmark}
/>
</div>
}
>
Remove Server Admin
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
</div>