Merge branch 'hotfix/v2.6.1' of https://github.com/ONLYOFFICE/DocSpace-client into hotfix/v2.6.1
This commit is contained in:
commit
8115c7ba33
@ -187,12 +187,14 @@ const AdditionalResources = (props) => {
|
||||
const onSave = useCallback(async () => {
|
||||
setIsLoading(true);
|
||||
|
||||
const settings = JSON.parse(JSON.stringify(additionalResourcesData));
|
||||
|
||||
settings.feedbackAndSupportEnabled = feedbackAndSupportEnabled;
|
||||
settings.videoGuidesEnabled = videoGuidesEnabled;
|
||||
settings.helpCenterEnabled = helpCenterEnabled;
|
||||
|
||||
await api.settings
|
||||
.setAdditionalResources(
|
||||
feedbackAndSupportEnabled,
|
||||
videoGuidesEnabled,
|
||||
helpCenterEnabled,
|
||||
)
|
||||
.setAdditionalResources(settings)
|
||||
.then(() => {
|
||||
toastr.success(t("Settings:SuccessfullySaveSettingsMessage"));
|
||||
})
|
||||
|
@ -407,16 +407,10 @@ export async function getCustomSchemaList() {
|
||||
}
|
||||
|
||||
export function setAdditionalResources(
|
||||
feedbackAndSupportEnabled,
|
||||
videoGuidesEnabled,
|
||||
helpCenterEnabled,
|
||||
additionalResources: TAdditionalResources,
|
||||
) {
|
||||
const data = {
|
||||
settings: {
|
||||
helpCenterEnabled,
|
||||
feedbackAndSupportEnabled,
|
||||
videoGuidesEnabled,
|
||||
},
|
||||
settings: additionalResources,
|
||||
};
|
||||
|
||||
return request({
|
||||
|
Loading…
Reference in New Issue
Block a user