mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
Disable editing options for legacy polls
This commit is contained in:
parent
fa0946705c
commit
4898b75f9b
2 changed files with 7 additions and 6 deletions
|
@ -167,11 +167,13 @@ const ManagePoll: React.VoidFunctionComponent<{
|
|||
label="Edit details"
|
||||
onClick={openChangePollDetailsModa}
|
||||
/>
|
||||
<DropdownItem
|
||||
icon={Table}
|
||||
label="Edit options"
|
||||
onClick={openChangeOptionsModal}
|
||||
/>
|
||||
{!poll.legacy ? (
|
||||
<DropdownItem
|
||||
icon={Table}
|
||||
label="Edit options"
|
||||
onClick={openChangeOptionsModal}
|
||||
/>
|
||||
) : null}
|
||||
<DropdownItem
|
||||
icon={Save}
|
||||
label="Export to CSV"
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import { GetPollApiResponse } from "api-client/get-poll";
|
||||
import { NextApiResponse } from "next";
|
||||
import { resetDates } from "utils/legacy-utils";
|
||||
import { getMongoClient } from "utils/mongodb-client";
|
||||
import { UpdatePollPayload } from "../../../../api-client/update-poll";
|
||||
import { prisma } from "../../../../db";
|
||||
import { exclude, withLink } from "../../../../utils/api-utils";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue