Compare commits
2 Commits
fd42de74fc
...
61f280a726
| Author | SHA1 | Date | |
|---|---|---|---|
| 61f280a726 | |||
| 9007f09f7b |
@@ -62,7 +62,8 @@ const PerformancePage = () => {
|
||||
const detailOpen = isDialogOpen("performanceDetailDialog");
|
||||
const registerOpen = isDialogOpen("performanceExcelRegisterDialog");
|
||||
const {data: detail, refetch: refetchDetail} = usePerformanceQuery(detailOpen ? selectedId : "");
|
||||
const canEdit = isInternalRole(auth.user?.userRole);
|
||||
const canRegister = isInternalRole(auth.user?.userRole);
|
||||
const canEdit = canRegister || isFoundationRole(auth.user?.userRole);
|
||||
const canDelete = isResearcherRole(auth.user?.userRole);
|
||||
|
||||
const visibleData = isMonitoring
|
||||
@@ -158,7 +159,7 @@ const PerformancePage = () => {
|
||||
|
||||
<PagePanel className="overflow-x-auto">
|
||||
<div className="mb-3 flex flex-wrap justify-end gap-2">
|
||||
{canEdit && <Button type="button" onClick={() => showDialog("performanceExcelRegisterDialog")}><Upload className="h-4 w-4" />공연 등록</Button>}
|
||||
{canRegister && <Button type="button" onClick={() => showDialog("performanceExcelRegisterDialog")}><Upload className="h-4 w-4" />공연 등록</Button>}
|
||||
<ExcelDownloadButton requestExcelExport={downloadPerformances} />
|
||||
</div>
|
||||
<DataTable
|
||||
|
||||
Reference in New Issue
Block a user