Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix: hide create poll button rather than disabling it (#16167)
Avram Tudor965b413d266a
diff --git a/lang/main.json b/lang/main.jsonindex c2bee11528..47cfb4550b 100644--- a/lang/main.json+++ b/lang/main.json@@ -948,7 +948,7 @@},"results": {"changeVote": "Change vote",- "empty": "There are no polls in the meeting yet. Start a poll here!",+ "empty": "There are no polls in the meeting yet.","hideDetailedResults": "Hide details","showDetailedResults": "Show details","vote": "Vote"diff --git a/react/features/polls/components/native/PollsPane.tsx b/react/features/polls/components/native/PollsPane.tsxindex 4d44ee5699..40992a9bca 100644--- a/react/features/polls/components/native/PollsPane.tsx+++ b/react/features/polls/components/native/PollsPane.tsx@@ -56,14 +56,13 @@ const PollsPane = (props: AbstractProps) => {? <PollCreate setCreateMode = { setCreateMode } />: <><PollsList setCreateMode = { setCreateMode } />- <Button+ {!isCreatePollsDisabled && <ButtonaccessibilityLabel = 'polls.create.create'- disabled = { isCreatePollsDisabled }id = { t('polls.create.create') }labelKey = 'polls.create.create'onClick = { onCreate }style = { createPollButtonStyles }- type = { BUTTON_TYPES.PRIMARY } />+ type = { BUTTON_TYPES.PRIMARY } />}</>}</JitsiScreen>diff --git a/react/features/polls/components/web/PollsPane.tsx b/react/features/polls/components/web/PollsPane.tsxindex 5701e4d3f1..27d2aeeedd 100644--- a/react/features/polls/components/web/PollsPane.tsx+++ b/react/features/polls/components/web/PollsPane.tsx@@ -37,14 +37,13 @@ const PollsPane = ({ createMode, isCreatePollsDisabled, onCreate, setCreateMode,<div className = { classes.listContainer } ><PollsList setCreateMode = { setCreateMode } /></div>- <div className = { classes.footer }>+ { !isCreatePollsDisabled && <div className = { classes.footer }><ButtonaccessibilityLabel = { t('polls.create.create') }- disabled = { isCreatePollsDisabled }fullWidth = { true }labelKey = { 'polls.create.create' }onClick = { onCreate } />- </div>+ </div>}</div>;};