Web: Editor: Added goBack button to the files.
This commit is contained in:
parent
7fba6003a2
commit
40218e944e
@ -1,4 +1,6 @@
|
||||
{
|
||||
"FileLocation": "Open file location",
|
||||
|
||||
"FullAccess": "Full access",
|
||||
"ReadOnly": "Read only",
|
||||
"Review": "Review",
|
||||
|
@ -1,4 +1,6 @@
|
||||
{
|
||||
"FileLocation": "Открыть расположение файла",
|
||||
|
||||
"FullAccess": "Полный доступ",
|
||||
"ReadOnly": "Только чтение",
|
||||
"Review": "Рецензирование",
|
||||
|
@ -22,6 +22,7 @@ import { getUser } from "@appserver/common/api/people";
|
||||
import throttle from "lodash/throttle";
|
||||
import { isIOS, deviceType } from "react-device-detect";
|
||||
import { homepage } from "../package.json";
|
||||
|
||||
import "./custom.scss";
|
||||
import { AppServerConfig } from "@appserver/common/constants";
|
||||
import SharingPanel from "files/SharingPanel";
|
||||
@ -44,6 +45,9 @@ let config;
|
||||
let docSaved = null;
|
||||
let docEditor;
|
||||
|
||||
const url = window.location.href;
|
||||
const filesUrl = url.substring(0, url.indexOf("/doceditor"));
|
||||
|
||||
const Editor = ({
|
||||
uploadPanelVisible,
|
||||
sharingPanelVisible,
|
||||
@ -275,6 +279,16 @@ const Editor = ({
|
||||
config.type = "mobile";
|
||||
}
|
||||
|
||||
config.editorConfig.customization = {
|
||||
...config.editorConfig.customization,
|
||||
goback: {
|
||||
blank: true,
|
||||
requestClose: false,
|
||||
text: i18n.t("FileLocation"),
|
||||
url: `${filesUrl}`,
|
||||
},
|
||||
};
|
||||
|
||||
const events = {
|
||||
events: {
|
||||
onAppReady: onSDKAppReady,
|
||||
|
Loading…
Reference in New Issue
Block a user