mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03: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
|
||||
type="button"
|
||||
class="toolbar-button gif-picker-button"
|
||||
disabled={uiState === 'loading'}
|
||||
disabled={
|
||||
uiState === 'loading' ||
|
||||
mediaAttachments.length >= maxMediaAttachments ||
|
||||
!!poll
|
||||
}
|
||||
onClick={() => {
|
||||
setShowGIFPicker(true);
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue