@sumaris-net/ngx-components 1.9.8 → 1.9.9
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.
- package/bundles/sumaris-net.ngx-components.umd.js +9 -5
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/graphql/graphql.service.js +4 -4
- package/esm2015/src/app/core/services/account.service.js +7 -3
- package/fesm2015/sumaris-net.ngx-components.js +9 -5
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/account.service.d.ts +3 -1
- package/src/assets/i18n/en-US.json +4 -1
- package/src/assets/i18n/en.json +4 -1
- package/src/assets/i18n/fr.json +4 -1
|
@@ -14861,7 +14861,7 @@
|
|
|
14861
14861
|
case 0:
|
|
14862
14862
|
client = (client || this.client);
|
|
14863
14863
|
if (!client) return [3 /*break*/, 2];
|
|
14864
|
-
console.info('[graphql]
|
|
14864
|
+
console.info('[graphql] Cleaning cache... ');
|
|
14865
14865
|
now = this._debug && Date.now();
|
|
14866
14866
|
// Clearing the cache
|
|
14867
14867
|
return [4 /*yield*/, client.cache.reset()];
|
|
@@ -14869,7 +14869,7 @@
|
|
|
14869
14869
|
// Clearing the cache
|
|
14870
14870
|
_a.sent();
|
|
14871
14871
|
if (this._debug)
|
|
14872
|
-
console.debug("[graphql]
|
|
14872
|
+
console.debug("[graphql] Cleaning cache [OK] in " + (Date.now() - now) + "ms");
|
|
14873
14873
|
_a.label = 2;
|
|
14874
14874
|
case 2: return [2 /*return*/];
|
|
14875
14875
|
}
|
|
@@ -15054,7 +15054,7 @@
|
|
|
15054
15054
|
client = (client || this.apollo.client);
|
|
15055
15055
|
if (!client)
|
|
15056
15056
|
return [2 /*return*/];
|
|
15057
|
-
console.info('[graphql] Resetting
|
|
15057
|
+
console.info('[graphql] Resetting Apollo client...');
|
|
15058
15058
|
client.stop();
|
|
15059
15059
|
return [4 /*yield*/, Promise.all([
|
|
15060
15060
|
client.clearStore(),
|
|
@@ -15873,7 +15873,7 @@
|
|
|
15873
15873
|
});
|
|
15874
15874
|
});
|
|
15875
15875
|
};
|
|
15876
|
-
AccountService.prototype.reload = function () {
|
|
15876
|
+
AccountService.prototype.reload = function (opts) {
|
|
15877
15877
|
return __awaiter(this, void 0, void 0, function () {
|
|
15878
15878
|
var now, wasLogin, error_6;
|
|
15879
15879
|
return __generator(this, function (_b) {
|
|
@@ -15899,6 +15899,10 @@
|
|
|
15899
15899
|
// Emit login event to subscribers
|
|
15900
15900
|
this.onLogin.next(this._data);
|
|
15901
15901
|
this.onChange.next(this._data);
|
|
15902
|
+
// Display toast (without await, because not need to wait toast close event)
|
|
15903
|
+
if (!opts || opts.showToast !== false) {
|
|
15904
|
+
this.showToast({ message: 'ACCOUNT.INFO.RELOADED', type: 'info' });
|
|
15905
|
+
}
|
|
15902
15906
|
return [2 /*return*/, this._data];
|
|
15903
15907
|
case 4:
|
|
15904
15908
|
error_6 = _b.sent();
|
|
@@ -16657,7 +16661,7 @@
|
|
|
16657
16661
|
variables: variables,
|
|
16658
16662
|
error: {
|
|
16659
16663
|
code: ErrorCodes$2.SUBSCRIBE_ACCOUNT_ERROR,
|
|
16660
|
-
message: 'ERROR.ACCOUNT.
|
|
16664
|
+
message: 'ERROR.ACCOUNT.SUBSCRIBE_ERROR'
|
|
16661
16665
|
}
|
|
16662
16666
|
}).pipe(operators.map(function (_b) {
|
|
16663
16667
|
var data = _b.data;
|