[MM-53711] Set save button opacity for editing a post when disabled (#7763)
* set save button opacity when disabled * change import --------- Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
parent
67a226ea1e
commit
4287802ab2
1 changed files with 2 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ import {useInputPropagation} from '@hooks/input';
|
|||
import useNavButtonPressed from '@hooks/navigation_button_pressed';
|
||||
import PostError from '@screens/edit_post/post_error';
|
||||
import {buildNavigationButton, dismissModal, setButtons} from '@screens/navigation';
|
||||
import {changeOpacity} from '@utils/theme';
|
||||
|
||||
import EditPostInput, {type EditPostInputRef} from './edit_post_input';
|
||||
|
||||
|
|
@ -102,6 +103,7 @@ const EditPost = ({componentId, maxPostSize, post, closeButtonId, hasFilesAttach
|
|||
rightButtons: [{
|
||||
...RIGHT_BUTTON,
|
||||
color: theme.sidebarHeaderTextColor,
|
||||
disabledColor: changeOpacity(theme.sidebarHeaderTextColor, 0.32),
|
||||
text: intl.formatMessage({id: 'edit_post.save', defaultMessage: 'Save'}),
|
||||
enabled,
|
||||
}],
|
||||
|
|
|
|||
Loading…
Reference in a new issue