@seafile/sdoc-editor 0.1.69-beta2 → 0.1.69-beta3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,7 +10,6 @@ var RevisionOperations = function RevisionOperations(_ref) {
|
|
|
10
10
|
var isPublished = context.getSetting('isPublished');
|
|
11
11
|
var repoID = context.getSetting('repoID');
|
|
12
12
|
var siteRoot = context.getSetting('siteRoot');
|
|
13
|
-
var filePath = context.getSetting('docPath');
|
|
14
13
|
var viewChanges = useCallback(function (event) {
|
|
15
14
|
event.stopPropagation();
|
|
16
15
|
event.nativeEvent.stopImmediatePropagation();
|
|
@@ -32,7 +31,7 @@ var RevisionOperations = function RevisionOperations(_ref) {
|
|
|
32
31
|
}, []);
|
|
33
32
|
var startRevise = useCallback(function () {
|
|
34
33
|
context.startRevise().then(function (res) {
|
|
35
|
-
window.location.href = "".concat(siteRoot, "lib/").concat(repoID, "/file/").concat(
|
|
34
|
+
window.location.href = "".concat(siteRoot, "lib/").concat(repoID, "/file/").concat(res.data.file_path);
|
|
36
35
|
}).catch(function (error) {
|
|
37
36
|
toaster.danger(t('Error'));
|
|
38
37
|
});
|