mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-30 10:59:04 +01:00
Remove superfluous toot length check
This commit is contained in:
parent
b7ec2a9002
commit
39b9a0619a
1 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ class Publisher extends ImmutablePureComponent {
|
||||||
|
|
||||||
const diff = maxChars - length(countText || '');
|
const diff = maxChars - length(countText || '');
|
||||||
const computedClass = classNames('composer--publisher', {
|
const computedClass = classNames('composer--publisher', {
|
||||||
disabled: disabled || diff < 0,
|
disabled: disabled,
|
||||||
over: diff < 0,
|
over: diff < 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ class Publisher extends ImmutablePureComponent {
|
||||||
{sideArm && sideArm !== 'none' ? (
|
{sideArm && sideArm !== 'none' ? (
|
||||||
<Button
|
<Button
|
||||||
className='side_arm'
|
className='side_arm'
|
||||||
disabled={disabled || diff < 0}
|
disabled={disabled}
|
||||||
onClick={onSecondarySubmit}
|
onClick={onSecondarySubmit}
|
||||||
style={{ padding: null }}
|
style={{ padding: null }}
|
||||||
text={
|
text={
|
||||||
|
@ -110,7 +110,7 @@ class Publisher extends ImmutablePureComponent {
|
||||||
}()}
|
}()}
|
||||||
title={`${intl.formatMessage(messages.publish)}: ${intl.formatMessage({ id: `privacy.${privacy}.short` })}`}
|
title={`${intl.formatMessage(messages.publish)}: ${intl.formatMessage({ id: `privacy.${privacy}.short` })}`}
|
||||||
onClick={this.handleSubmit}
|
onClick={this.handleSubmit}
|
||||||
disabled={disabled || diff < 0}
|
disabled={disabled}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue