@seafile/seafile-sdoc-editor 2.0.76 → 2.0.77
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.
|
@@ -82,6 +82,10 @@ var TipMessage = /*#__PURE__*/function (_React$Component) {
|
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
+
(0, _defineProperty2["default"])(_this, "onConnect", function () {
|
|
86
|
+
_this.isConnectError = false;
|
|
87
|
+
_sdocEditor.toaster.closeAll();
|
|
88
|
+
});
|
|
85
89
|
(0, _defineProperty2["default"])(_this, "onReconnect", function () {
|
|
86
90
|
_this.isConnectError = false;
|
|
87
91
|
var t = _this.props.t;
|
|
@@ -123,11 +127,6 @@ var TipMessage = /*#__PURE__*/function (_React$Component) {
|
|
|
123
127
|
className: "tip-message"
|
|
124
128
|
}, t('Saving'));
|
|
125
129
|
}
|
|
126
|
-
if (!isSaving && isSaved) {
|
|
127
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
128
|
-
className: "tip-message"
|
|
129
|
-
}, t('All_changes_saved'));
|
|
130
|
-
}
|
|
131
130
|
if (lastSavedAt) {
|
|
132
131
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
133
132
|
className: "tip-message"
|
|
@@ -154,6 +153,7 @@ var TipMessage = /*#__PURE__*/function (_React$Component) {
|
|
|
154
153
|
var eventBus = _sdocEditor.EventBus.getInstance();
|
|
155
154
|
this.unsubscribeSavingEvent = eventBus.subscribe('is-saving', this.onDocumentSaving);
|
|
156
155
|
this.unsubscribeSavedEvent = eventBus.subscribe('saved', this.onDocumentSaved);
|
|
156
|
+
this.unsubscribeSavedEvent = eventBus.subscribe('connect', this.onConnect);
|
|
157
157
|
// offline reconnect
|
|
158
158
|
this.unsubscribeDisconnectEvent = eventBus.subscribe('disconnect', this.onDisconnect);
|
|
159
159
|
this.unsubscribeReconnectErrorEvent = eventBus.subscribe('reconnect_error', this.onReconnectError);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/seafile-sdoc-editor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.77",
|
|
4
4
|
"author": "shuntian <978987373@qq.com>",
|
|
5
5
|
"homepage": "https://github.com/seafileltd/sea-sdoc-editor#readme",
|
|
6
6
|
"license": "ISC",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"description": "",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@seafile/print-js": "1.6.6",
|
|
32
|
-
"@seafile/sdoc-editor": "^2.0.
|
|
32
|
+
"@seafile/sdoc-editor": "^2.0.160",
|
|
33
33
|
"classnames": "2.3.2",
|
|
34
34
|
"dayjs": "1.10.7"
|
|
35
35
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "7a3281f64c4f672f1cac2903d4c9e8ea20baee5d"
|
|
49
49
|
}
|