fix:disable create edit delete
This commit is contained in:
parent
dbb2fbb464
commit
a0ee6421d1
|
|
@ -11,10 +11,12 @@ export default function BasicPage() {
|
||||||
<div className="overflow-x-hidden overflow-y-scroll">
|
<div className="overflow-x-hidden overflow-y-scroll">
|
||||||
<div className="px-2 md:px-4 md:py-4 w-full">
|
<div className="px-2 md:px-4 md:py-4 w-full">
|
||||||
<div className="bg-white shadow-lg dark:bg-[#18181b] rounded-xl p-3">
|
<div className="bg-white shadow-lg dark:bg-[#18181b] rounded-xl p-3">
|
||||||
<Link href="/admin/article/create">
|
<Link href="#">
|
||||||
|
{/* <Link href="/admin/article/create"> */}
|
||||||
<Button
|
<Button
|
||||||
size="md"
|
size="md"
|
||||||
className="bg-[#F07C00] text-white w-full lg:w-fit"
|
className="bg-[#F07C00] text-white w-full lg:w-fit"
|
||||||
|
isDisabled
|
||||||
>
|
>
|
||||||
Tambah Artikel
|
Tambah Artikel
|
||||||
<AddIcon />
|
<AddIcon />
|
||||||
|
|
|
||||||
|
|
@ -174,6 +174,7 @@ export default function MasterCategoryTable() {
|
||||||
size="md"
|
size="md"
|
||||||
className="bg-[#F07C00] text-white w-full lg:w-fit"
|
className="bg-[#F07C00] text-white w-full lg:w-fit"
|
||||||
onPress={onOpen}
|
onPress={onOpen}
|
||||||
|
isDisabled
|
||||||
>
|
>
|
||||||
Tambah Kategori
|
Tambah Kategori
|
||||||
<AddIcon />
|
<AddIcon />
|
||||||
|
|
|
||||||
|
|
@ -351,7 +351,8 @@ export default function DashboardContainer() {
|
||||||
<div className="flex flex-col w-full lg:w-[45%] gap-6 shadow-md bg-white dark:bg-[#18181b] rounded-lg p-8 text-sm">
|
<div className="flex flex-col w-full lg:w-[45%] gap-6 shadow-md bg-white dark:bg-[#18181b] rounded-lg p-8 text-sm">
|
||||||
<div className="flex justify-between font-semibold">
|
<div className="flex justify-between font-semibold">
|
||||||
<p>Recent Article</p>
|
<p>Recent Article</p>
|
||||||
<Link href="/admin/article/create">
|
<Link href="#">
|
||||||
|
{/* <Link href="/admin/article/create"> */}
|
||||||
<Button color="primary" variant="bordered">
|
<Button color="primary" variant="bordered">
|
||||||
Buat Article
|
Buat Article
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
|
|
@ -321,7 +321,7 @@ export default function ArticleTable() {
|
||||||
<DotsYIcon className="text-default-300" />
|
<DotsYIcon className="text-default-300" />
|
||||||
</Button>
|
</Button>
|
||||||
</DropdownTrigger>
|
</DropdownTrigger>
|
||||||
<DropdownMenu>
|
<DropdownMenu disabledKeys={["edit", "delete"]}>
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
key="copy-article"
|
key="copy-article"
|
||||||
onPress={() => copyUrlArticle(article.id, article.slug)}
|
onPress={() => copyUrlArticle(article.id, article.slug)}
|
||||||
|
|
|
||||||
|
|
@ -284,7 +284,7 @@ export default function CategoriesTable(props: { triggerRefresh: boolean }) {
|
||||||
<DotsYIcon className="text-default-300" />
|
<DotsYIcon className="text-default-300" />
|
||||||
</Button>
|
</Button>
|
||||||
</DropdownTrigger>
|
</DropdownTrigger>
|
||||||
<DropdownMenu>
|
<DropdownMenu disabledKeys={["Edit", "Delete"]}>
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
key="Detail"
|
key="Detail"
|
||||||
onPress={() => openModal(category.id, true)}
|
onPress={() => openModal(category.id, true)}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue