Fixed Bug 67431 – Mobile. Folder is not selected when selecting Folder Upload

This commit is contained in:
VladaGaz 2024-04-17 10:10:47 +03:00
parent 52117aca8c
commit 1b6f2db90c
3 changed files with 6 additions and 2 deletions

View File

@ -62,6 +62,7 @@ import styled, { css } from "styled-components";
import { resendInvitesAgain } from "@docspace/shared/api/people";
import { getCorrectFourValuesStyle } from "@docspace/shared/utils";
import { ArticleButtonLoader } from "@docspace/shared/skeletons/article";
import { isDesktop } from "@docspace/shared/utils";
const StyledButton = styled(Button)`
font-weight: 700;
@ -484,7 +485,7 @@ const ArticleMainButtonContent = (props) => {
className: "main-button_drop-down",
icon: ActionsUploadReactSvgUrl,
label: t("UploadFolder"),
disabled: isPrivacy,
disabled: isPrivacy || !isDesktop(),
onClick: onUploadFolderClick,
key: "upload-folder",
},

View File

@ -296,7 +296,7 @@ const MainButtonMobile = (props: MainButtonMobileProps) => {
<div key={option.key} className="separator-wrapper">
<div className="is-separator" />
</div>
) : (
) : !option.disabled ? (
<StyledDropDownItem
id={option.id}
className={`drop-down-item-button ${
@ -308,6 +308,8 @@ const MainButtonMobile = (props: MainButtonMobileProps) => {
icon={option.icon ? option.icon : ""}
// action={option.action}
/>
) : (
<div key={option.key} />
),
)}
</StyledButtonOptions>

View File

@ -34,6 +34,7 @@ export type ButtonOption = {
error?: boolean;
id?: string;
isSeparator?: boolean;
disabled?: boolean;
};
export type ProgressOption = {
open?: boolean;