@sgcloud-sgsistemas/base 1.3.5 → 1.3.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sgcloud-sgsistemas/base",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "Base para os sistemas da mobiage",
5
5
  "repository": {
6
6
  "type": "private",
@@ -39,7 +39,8 @@
39
39
  bottom: auto;
40
40
  width: 100%;
41
41
  max-width: 900px;
42
- height: 60px;
42
+ min-height: 60px;
43
+ max-height: 80px;
43
44
  padding-top: 10px;
44
45
  transform: translateX(-50%);
45
46
  z-index: 23800;
@@ -150,6 +151,8 @@
150
151
  }
151
152
 
152
153
  &.mb-n-float {
154
+ min-height: 60px;
155
+ max-height: 80px;
153
156
  border-radius: 5px;
154
157
  opacity: 0;
155
158
  transform: perspective(400px) translateY(-30%);
@@ -188,22 +188,13 @@ const controller = function ($scope, $timeout, mbUserService, $state) {
188
188
 
189
189
  $scope.changeOrganization = async () => {
190
190
  if ($scope.organizationSelected !== undefined) {
191
- const selectedOrganization = $scope.user.otherOrganizations[$scope.organizationSelected];
192
- const confirmation = await Swal.fire({
193
- text: `Deseja trocar para a empresa "${selectedOrganization.name}"?`,
194
- showCancelButton: true,
195
- confirmButtonText: 'Sim',
196
- cancelButtonText: 'Não',
197
- reverseButtons: true
198
- });
199
- if (!confirmation.isConfirmed) return;
200
191
  if (!$scope.user.changeOrganizationAction) {
201
192
  mbUserService.setUser(this.config);
202
193
  $scope.user = mbUserService.getUser();
203
194
  }
204
195
  let result = (await mbUserService.validTime(
205
- selectedOrganization.organizationHierarchyCode ||
206
- selectedOrganization.hierarchyCode,
196
+ $scope.user.otherOrganizations[$scope.organizationSelected].organizationHierarchyCode ||
197
+ $scope.user.otherOrganizations[$scope.organizationSelected].hierarchyCode,
207
198
  SessionStorageBase.getItem('user').login,
208
199
  SessionStorageBase.getItem('user').token
209
200
  )).data
@@ -211,7 +202,7 @@ const controller = function ($scope, $timeout, mbUserService, $state) {
211
202
  $scope.outOfHourAccess(result.nextAccess || 'Próximo acesso: nunca. Entre em contato com o superior.')
212
203
  return
213
204
  } else {
214
- $scope.user.changeOrganizationAction(selectedOrganization);
205
+ $scope.user.changeOrganizationAction($scope.user.otherOrganizations[$scope.organizationSelected]);
215
206
  }
216
207
  }
217
208
  };
@@ -852,11 +852,10 @@
852
852
  }
853
853
  .mb-tu-m-ca-company {
854
854
  width: 100%;
855
- min-height: 64px;
856
855
  display: flex;
857
856
  justify-content: flex-start;
858
857
  font-size: 14px;
859
- padding: 14px 15px 14px 10px;
858
+ padding: 10px 15px 10px 10px;
860
859
  align-items: center;
861
860
  flex-direction: row;
862
861
  font-weight: 700;