@seafile/sdoc-editor 0.2.23-beta → 0.2.23-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.
|
@@ -123,7 +123,8 @@ var RevisionOperations = function RevisionOperations(_ref) {
|
|
|
123
123
|
if (canMerge && isNeedReplaceMaster) {
|
|
124
124
|
setTipType(TIP_TYPE.PUBLISHING);
|
|
125
125
|
context.publishRevision().then(function (res) {
|
|
126
|
-
|
|
126
|
+
setPublished(true);
|
|
127
|
+
toaster.success(t('Revision published'));
|
|
127
128
|
}).catch(function (error) {
|
|
128
129
|
toaster.danger(t('Error'));
|
|
129
130
|
});
|
|
@@ -146,7 +147,7 @@ var RevisionOperations = function RevisionOperations(_ref) {
|
|
|
146
147
|
}
|
|
147
148
|
toaster.danger(t('Error'));
|
|
148
149
|
});
|
|
149
|
-
}, [loadDocument, t]);
|
|
150
|
+
}, [loadDocument, t, setPublished]);
|
|
150
151
|
|
|
151
152
|
// confirm publish
|
|
152
153
|
var onSubmit = useCallback(function () {
|