feat(guides) : add team transfer and visibility controls
This commit is contained in:
@@ -19,6 +19,7 @@ import {
|
||||
startCatalogSync,
|
||||
} from "@/app/admin/actions";
|
||||
import { DeleteConfirmationDialog } from "@/components/admin/delete-confirmation-dialog";
|
||||
import { GuideVisibilityControl } from "@/components/admin/guide-visibility-control";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
@@ -48,6 +49,7 @@ type GuideCard = {
|
||||
version: number;
|
||||
updatedAt: Date;
|
||||
trashedAt: Date | null;
|
||||
isPublic: boolean;
|
||||
};
|
||||
|
||||
export function StructuredDashboard({
|
||||
@@ -160,7 +162,7 @@ export function StructuredDashboard({
|
||||
{new Date(guide.updatedAt).toLocaleString("th-TH")}
|
||||
</p>
|
||||
</CardContent>
|
||||
<CardFooter className="justify-between pb-5">
|
||||
<CardFooter className="flex-wrap justify-between gap-2 pb-5">
|
||||
<Button
|
||||
className="relative z-20"
|
||||
render={<Link href={`/admin/${guide.characterKey}`} />}
|
||||
@@ -168,6 +170,12 @@ export function StructuredDashboard({
|
||||
>
|
||||
แก้ไข Guide
|
||||
</Button>
|
||||
<GuideVisibilityControl
|
||||
className="relative z-20"
|
||||
guideId={guide.id}
|
||||
guideName={guide.name}
|
||||
isPublic={guide.isPublic}
|
||||
/>
|
||||
<DeleteConfirmationDialog
|
||||
showSuccessToast={false}
|
||||
trigger={
|
||||
|
||||
Reference in New Issue
Block a user