@robotical/webapp-types 1.0.9 → 1.1.0
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.
|
@@ -47,7 +47,7 @@ export default class ApplicationManager {
|
|
|
47
47
|
* Disconnect from RAFT generic
|
|
48
48
|
* This method is called from various environments (connection button, blocksjr, blocks etc.)
|
|
49
49
|
*/
|
|
50
|
-
disconnectGeneric(raft: RAFT): Promise<void>;
|
|
50
|
+
disconnectGeneric(raft: RAFT, afterRaftDisconnectedCb?: () => void): Promise<void>;
|
|
51
51
|
/**
|
|
52
52
|
* Selects a RAFT in Phone's verification modal
|
|
53
53
|
*/
|
|
@@ -175,7 +175,7 @@ var ApplicationManager = /** @class */ (function () {
|
|
|
175
175
|
* Disconnect from RAFT generic
|
|
176
176
|
* This method is called from various environments (connection button, blocksjr, blocks etc.)
|
|
177
177
|
*/
|
|
178
|
-
ApplicationManager.prototype.disconnectGeneric = function (raft) {
|
|
178
|
+
ApplicationManager.prototype.disconnectGeneric = function (raft, afterRaftDisconnectedCb) {
|
|
179
179
|
return __awaiter(this, void 0, void 0, function () {
|
|
180
180
|
var confirmDisconnect, e_3;
|
|
181
181
|
return __generator(this, function (_a) {
|
|
@@ -191,6 +191,9 @@ var ApplicationManager = /** @class */ (function () {
|
|
|
191
191
|
return [4 /*yield*/, window.applicationManager.disconnectFromRaft(raft.id)];
|
|
192
192
|
case 2:
|
|
193
193
|
_a.sent();
|
|
194
|
+
if (afterRaftDisconnectedCb) {
|
|
195
|
+
afterRaftDisconnectedCb();
|
|
196
|
+
}
|
|
194
197
|
return [3 /*break*/, 4];
|
|
195
198
|
case 3:
|
|
196
199
|
e_3 = _a.sent();
|