mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-22 21:59:22 +01:00
Disable GIF button if exceed max media limit or has poll
This commit is contained in:
parent
224cad4d7f
commit
5ead17a093
1 changed files with 5 additions and 1 deletions
|
@ -1342,7 +1342,11 @@ function Compose({
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="toolbar-button gif-picker-button"
|
class="toolbar-button gif-picker-button"
|
||||||
disabled={uiState === 'loading'}
|
disabled={
|
||||||
|
uiState === 'loading' ||
|
||||||
|
mediaAttachments.length >= maxMediaAttachments ||
|
||||||
|
!!poll
|
||||||
|
}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setShowGIFPicker(true);
|
setShowGIFPicker(true);
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue