Merge pull request #589 from ONLYOFFICE/bugfix/oauth2-revoke-dialog

Client:PortalSettings:OAuth: fix input max length
This commit is contained in:
Alexey Bannov 2024-08-16 15:46:29 +03:00 committed by GitHub
commit 59651b5d4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 4 deletions

View File

@ -156,6 +156,7 @@ const GenerateDeveloperTokenDialog = ({
iconName={CopyReactSvgUrl}
onIconClick={onCopyClick}
type={InputType.text}
maxLength={10000}
/>
<Text className="dates">
Created: {dates.created}

View File

@ -12,11 +12,15 @@ import { Button, ButtonSize } from "@docspace/shared/components/button";
import { Text } from "@docspace/shared/components/text";
import { toastr } from "@docspace/shared/components/toast";
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 { UserStore } from "@docspace/shared/store/UserStore";
const StyledContainer = styled.div`
p {
@ -86,13 +90,14 @@ const GenerateDeveloperTokenDialog = ({
<ModalDialog.Body>
<StyledContainer>
<Text>Warning text</Text>
<InputBlock
<TextInput
value={token}
scale
placeholder="Enter developer token"
type={InputType.text}
size={InputSize.base}
onChange={onChange}
maxLength={10000}
/>
</StyledContainer>
</ModalDialog.Body>