mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 01:48:32 +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"
|
label="Edit details"
|
||||||
onClick={openChangePollDetailsModa}
|
onClick={openChangePollDetailsModa}
|
||||||
/>
|
/>
|
||||||
<DropdownItem
|
{!poll.legacy ? (
|
||||||
icon={Table}
|
<DropdownItem
|
||||||
label="Edit options"
|
icon={Table}
|
||||||
onClick={openChangeOptionsModal}
|
label="Edit options"
|
||||||
/>
|
onClick={openChangeOptionsModal}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
icon={Save}
|
icon={Save}
|
||||||
label="Export to CSV"
|
label="Export to CSV"
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { GetPollApiResponse } from "api-client/get-poll";
|
import { GetPollApiResponse } from "api-client/get-poll";
|
||||||
import { NextApiResponse } from "next";
|
import { NextApiResponse } from "next";
|
||||||
import { resetDates } from "utils/legacy-utils";
|
import { resetDates } from "utils/legacy-utils";
|
||||||
import { getMongoClient } from "utils/mongodb-client";
|
|
||||||
import { UpdatePollPayload } from "../../../../api-client/update-poll";
|
import { UpdatePollPayload } from "../../../../api-client/update-poll";
|
||||||
import { prisma } from "../../../../db";
|
import { prisma } from "../../../../db";
|
||||||
import { exclude, withLink } from "../../../../utils/api-utils";
|
import { exclude, withLink } from "../../../../utils/api-utils";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue