@seafile/sdoc-editor 0.1.69-beta → 0.1.69-beta1
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.
|
@@ -39,13 +39,17 @@ var RevisionOperations = function RevisionOperations(_ref) {
|
|
|
39
39
|
|
|
40
40
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
41
41
|
}, []);
|
|
42
|
-
var startReviseBtn =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
var startReviseBtn = useCallback(function (className) {
|
|
43
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
44
|
+
color: "success",
|
|
45
|
+
className: className,
|
|
46
|
+
onClick: startRevise
|
|
47
|
+
}, t('Start_revise'));
|
|
48
|
+
|
|
49
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
50
|
+
}, []);
|
|
51
|
+
if (!isSdocRevision) return startReviseBtn();
|
|
52
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, startReviseBtn('mr-4'), !isPublished && revisionURL && /*#__PURE__*/React.createElement(Button, {
|
|
49
53
|
color: "success",
|
|
50
54
|
className: "mr-4",
|
|
51
55
|
onClick: viewChanges
|
package/package.json
CHANGED