Merge branch 'release/v2.6.0' of https://github.com/ONLYOFFICE/DocSpace-client into release/v2.6.0

This commit is contained in:
Timofey Boyko 2024-07-11 15:08:26 +03:00
commit cedb66d468
7 changed files with 18 additions and 4 deletions

View File

@ -314,6 +314,7 @@ const useFiles = ({
fromTemplate: true,
title: gallerySelected.attributes.name_form,
openEditor: !isFormRoom,
edit: true,
};
event.payload = payload;

View File

@ -70,7 +70,7 @@ const tagList = (tags, selectTag) => (
key={i}
className="property-tag"
label={tag}
onClick={() => selectTag(tag)}
onClick={() => selectTag({ label: tag })}
/>
))}
</div>

View File

@ -67,7 +67,7 @@ const AccountsTable = (props) => {
},
{
key: UserTypes.RoomAdmin,
label: t(`Common:${UserTypes.RoomAdmin}`),
label: t("Common:RoomAdmin"),
onClick: setTypeRoomAdmin,
},
{

View File

@ -265,6 +265,7 @@ const BruteForceProtection = (props) => {
<FieldContainer
className="input-container"
labelVisible={true}
labelText={t("NumberOfAttempts")}
isVertical={true}
place="top"
@ -284,6 +285,7 @@ const BruteForceProtection = (props) => {
<FieldContainer
className="input-container"
labelVisible={true}
labelText={t("BlockingTime")}
isVertical={true}
place="top"
@ -303,6 +305,7 @@ const BruteForceProtection = (props) => {
<FieldContainer
className="input-container"
labelVisible={true}
labelText={t("CheckPeriod")}
isVertical={true}
place="top"

View File

@ -402,6 +402,7 @@ class DialogsStore {
templateId: fileInfo.id,
withoutDialog,
preview,
edit: true,
};
event.payload = payload;

View File

@ -189,21 +189,29 @@ const Editor = ({
}
const customization = new URLSearchParams(search).get("customization");
const sdkCustomization: NonNullable<
IConfig["editorConfig"]
>["customization"] = JSON.parse(customization || "{}");
const theme = sdkCustomization?.uiTheme || user?.theme;
if (newConfig.editorConfig)
if (newConfig.editorConfig) {
newConfig.editorConfig.customization = {
...newConfig.editorConfig.customization,
...sdkCustomization,
goback: { ...goBack },
close: { visible: SHOW_CLOSE, text: t("Common:CloseButton") },
uiTheme: getEditorTheme(theme as ThemeKeys),
};
if (SHOW_CLOSE) {
newConfig.editorConfig.customization.close = {
visible: SHOW_CLOSE,
text: t("Common:CloseButton"),
};
}
}
//if (newConfig.document && newConfig.document.info)
// newConfig.document.info.favorite = false;

View File

@ -153,6 +153,7 @@ const LinkRow = ({
modernView
type="onlyIcon"
isDisabled={isExpiredLink || isLoaded}
manualWidth="fit-content"
/>
</div>
</StyledLinkRow>