Merge pull request #589 from ONLYOFFICE/bugfix/oauth2-revoke-dialog
Client:PortalSettings:OAuth: fix input max length
This commit is contained in:
commit
59651b5d4c
@ -156,6 +156,7 @@ const GenerateDeveloperTokenDialog = ({
|
|||||||
iconName={CopyReactSvgUrl}
|
iconName={CopyReactSvgUrl}
|
||||||
onIconClick={onCopyClick}
|
onIconClick={onCopyClick}
|
||||||
type={InputType.text}
|
type={InputType.text}
|
||||||
|
maxLength={10000}
|
||||||
/>
|
/>
|
||||||
<Text className="dates">
|
<Text className="dates">
|
||||||
Created: {dates.created}
|
Created: {dates.created}
|
||||||
|
@ -12,11 +12,15 @@ import { Button, ButtonSize } from "@docspace/shared/components/button";
|
|||||||
import { Text } from "@docspace/shared/components/text";
|
import { Text } from "@docspace/shared/components/text";
|
||||||
import { toastr } from "@docspace/shared/components/toast";
|
import { toastr } from "@docspace/shared/components/toast";
|
||||||
import { TData } from "@docspace/shared/components/toast/Toast.type";
|
import { TData } from "@docspace/shared/components/toast/Toast.type";
|
||||||
import { InputBlock } from "@docspace/shared/components/input-block";
|
|
||||||
import { InputSize, InputType } from "@docspace/shared/components/text-input";
|
import {
|
||||||
|
InputSize,
|
||||||
|
InputType,
|
||||||
|
TextInput,
|
||||||
|
} from "@docspace/shared/components/text-input";
|
||||||
|
import { UserStore } from "@docspace/shared/store/UserStore";
|
||||||
|
|
||||||
import { OAuthStoreProps } from "SRC_DIR/store/OAuthStore";
|
import { OAuthStoreProps } from "SRC_DIR/store/OAuthStore";
|
||||||
import { UserStore } from "@docspace/shared/store/UserStore";
|
|
||||||
|
|
||||||
const StyledContainer = styled.div`
|
const StyledContainer = styled.div`
|
||||||
p {
|
p {
|
||||||
@ -86,13 +90,14 @@ const GenerateDeveloperTokenDialog = ({
|
|||||||
<ModalDialog.Body>
|
<ModalDialog.Body>
|
||||||
<StyledContainer>
|
<StyledContainer>
|
||||||
<Text>Warning text</Text>
|
<Text>Warning text</Text>
|
||||||
<InputBlock
|
<TextInput
|
||||||
value={token}
|
value={token}
|
||||||
scale
|
scale
|
||||||
placeholder="Enter developer token"
|
placeholder="Enter developer token"
|
||||||
type={InputType.text}
|
type={InputType.text}
|
||||||
size={InputSize.base}
|
size={InputSize.base}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
|
maxLength={10000}
|
||||||
/>
|
/>
|
||||||
</StyledContainer>
|
</StyledContainer>
|
||||||
</ModalDialog.Body>
|
</ModalDialog.Body>
|
||||||
|
Loading…
Reference in New Issue
Block a user