Web: Files: fixed MainButton options

This commit is contained in:
Nikita Gopienko 2022-04-21 16:15:20 +03:00
parent 03c8921293
commit 00b2c032e4

View File

@ -169,16 +169,19 @@ const ArticleMainButtonContent = (props) => {
disabled: isPrivacy,
key: "form-file",
},
hasGalleryFiles && {
className: "main-button_drop-down_sub",
icon: "images/form.react.svg",
label: t("Common:OFORMsGallery"),
onClick: onShowGallery,
disabled: isPrivacy,
key: "form-gallery",
},
];
if ((isMobile || isTabletUtils()) && hasGalleryFiles) {
formActions.push({
className: "main-button_drop-down_sub",
icon: "images/form.react.svg",
label: t("Common:OFORMsGallery"),
onClick: onShowGallery,
disabled: isPrivacy,
key: "form-gallery",
});
}
const actions = [
{
className: "main-button_drop-down",