monkey-front-core 0.0.106 → 0.0.111
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/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +9 -3
- package/fesm2015/monkey-front-core.mjs +8 -2
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +8 -2
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.111.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.106.tgz +0 -0
|
@@ -1996,10 +1996,12 @@ class MonkeyEcxCommonsService {
|
|
|
1996
1996
|
}
|
|
1997
1997
|
genericMethod(link, data, callback) {
|
|
1998
1998
|
const { href, type = 'get' } = link;
|
|
1999
|
-
this.monkeyecxService?.[type.toLowerCase()](`${href}`, data)?.subscribe(() => {
|
|
1999
|
+
this.monkeyecxService?.[type.toLowerCase()](`${href}`, data)?.subscribe((resp) => {
|
|
2000
2000
|
if (callback)
|
|
2001
|
-
callback();
|
|
2001
|
+
callback(resp);
|
|
2002
2002
|
}, (err) => {
|
|
2003
|
+
if (callback)
|
|
2004
|
+
callback();
|
|
2003
2005
|
throwError(err);
|
|
2004
2006
|
});
|
|
2005
2007
|
}
|
|
@@ -2008,6 +2010,10 @@ class MonkeyEcxCommonsService {
|
|
|
2008
2010
|
this.__i18n = translateService.instant(keys);
|
|
2009
2011
|
this.__oni18nDataChanged$.next(null);
|
|
2010
2012
|
});
|
|
2013
|
+
translateService.getStreamOnTranslationChange(keys).subscribe(() => {
|
|
2014
|
+
this.__i18n = translateService.instant(keys);
|
|
2015
|
+
this.__oni18nDataChanged$.next(null);
|
|
2016
|
+
});
|
|
2011
2017
|
}
|
|
2012
2018
|
doPagination() {
|
|
2013
2019
|
if (!this.__onLoadingInProgress$.value) {
|