@senior-gestao-relacionamento/angular-components 1.4.0 → 1.5.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.
- package/bundles/senior-gestao-relacionamento-angular-components.umd.js +4 -4
- package/bundles/senior-gestao-relacionamento-angular-components.umd.js.map +1 -1
- package/bundles/senior-gestao-relacionamento-angular-components.umd.min.js +1 -1
- package/bundles/senior-gestao-relacionamento-angular-components.umd.min.js.map +1 -1
- package/esm2015/services/current-collaborator/current-collaborator.service.js +4 -4
- package/esm2015/services/websocket/websocket.service.js +2 -2
- package/esm5/services/current-collaborator/current-collaborator.service.js +4 -4
- package/esm5/services/websocket/websocket.service.js +2 -2
- package/fesm2015/senior-gestao-relacionamento-angular-components.js +4 -4
- package/fesm2015/senior-gestao-relacionamento-angular-components.js.map +1 -1
- package/fesm5/senior-gestao-relacionamento-angular-components.js +4 -4
- package/fesm5/senior-gestao-relacionamento-angular-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -884,7 +884,7 @@
|
|
|
884
884
|
CurrentCollaboratorService.prototype.validate = function () {
|
|
885
885
|
var _this = this;
|
|
886
886
|
this.call(false).subscribe(function (collaborator) {
|
|
887
|
-
if (collaborator.active === false
|
|
887
|
+
if (collaborator.active === false) {
|
|
888
888
|
_this.redirect('collaborator-inactive');
|
|
889
889
|
}
|
|
890
890
|
});
|
|
@@ -916,7 +916,7 @@
|
|
|
916
916
|
_this.http.get('crmx_collaborator/foundation/queries/getCurrentCollaborator')
|
|
917
917
|
.pipe(operators.takeUntil(_this.ngUnsubscribe), operators.catchError(function (err) {
|
|
918
918
|
var statusCode = 404;
|
|
919
|
-
if (err.status === statusCode
|
|
919
|
+
if (err.status === statusCode) {
|
|
920
920
|
_this.redirect('collaborator-not-found');
|
|
921
921
|
}
|
|
922
922
|
;
|
|
@@ -932,7 +932,7 @@
|
|
|
932
932
|
});
|
|
933
933
|
};
|
|
934
934
|
CurrentCollaboratorService.prototype.redirect = function (page) {
|
|
935
|
-
location.href = this.storageService.getBaseUrl() +
|
|
935
|
+
location.href = this.storageService.getBaseUrl() + "/gestao-relacionamento/crmx_collaborator/foundation/#/" + page;
|
|
936
936
|
};
|
|
937
937
|
CurrentCollaboratorService.prototype.removeCircularReferences = function (obj) {
|
|
938
938
|
var seen = new WeakSet();
|
|
@@ -1392,7 +1392,7 @@
|
|
|
1392
1392
|
if (Array.isArray(obj)) {
|
|
1393
1393
|
obj.forEach(function (item) { return resolve(item, rootObj); });
|
|
1394
1394
|
}
|
|
1395
|
-
|
|
1395
|
+
if (obj !== null && typeof obj === 'object') {
|
|
1396
1396
|
Object.keys(obj).forEach(function (key) {
|
|
1397
1397
|
if (key === '$ref' && obj[key]) {
|
|
1398
1398
|
var refPath = obj[key]; // Caminho da referência
|