@nixweb/nixloc-ui 0.0.59 → 0.0.60

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": "@nixweb/nixloc-ui",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -7,8 +7,6 @@
7
7
  :class="{
8
8
  topo: posicao == 'topo',
9
9
  rodape: posicao == 'rodape',
10
- esconde: menu.escondeMostra,
11
- mostra: !menu.escondeMostra,
12
10
  }"
13
11
  >
14
12
  <div class="tamanho">
@@ -35,7 +33,6 @@ export default {
35
33
  },
36
34
  computed: {
37
35
  ...mapGetters("generic", ["carregando"]),
38
- ...mapState("generic", ["menu"]),
39
36
  },
40
37
  };
41
38
  </script>
@@ -48,6 +45,7 @@ export default {
48
45
  overflow: hidden;
49
46
  z-index: 20;
50
47
  padding: 18px;
48
+ margin-left: 230px;
51
49
  }
52
50
 
53
51
  .tamanho {
@@ -68,11 +66,4 @@ export default {
68
66
  border-top: 1px solid #e1e1e2;
69
67
  }
70
68
 
71
- .esconde {
72
- padding-left: 60px;
73
- }
74
-
75
- .mostra {
76
- padding-left: 230px;
77
- }
78
69
  </style>
@@ -176,7 +176,12 @@ export default {
176
176
  return response.data;
177
177
  }
178
178
  }, (err) => {
179
- context.commit('insereNotificacaoErroApi');
179
+ if (err.response)
180
+ if (err.response.status === 403)
181
+ context.commit('insereNotificacao', [{ mensagem: "Usuário não autorizado!" }])
182
+
183
+ if (!err.response)
184
+ context.commit('insereNotificacaoErroApi');
180
185
  return false;
181
186
  })
182
187
  },
@@ -201,7 +206,13 @@ export default {
201
206
  return response.data;
202
207
  }
203
208
  }, (err) => {
204
- context.commit('insereNotificacaoErroApi');
209
+ if (err.response)
210
+ if (err.response.status === 403)
211
+ context.commit('insereNotificacao', [{ mensagem: "Usuário não autorizado!" }])
212
+
213
+ if (!err.response)
214
+ context.commit('insereNotificacaoErroApi');
215
+
205
216
  return false;
206
217
  })
207
218
  },
@@ -250,7 +261,12 @@ export default {
250
261
  }
251
262
 
252
263
  }, (err) => {
253
- context.commit('insereNotificacaoErroApi');
264
+ if (err.response)
265
+ if (err.response.status === 403)
266
+ context.commit('insereNotificacao', [{ mensagem: "Usuário não autorizado!" }])
267
+
268
+ if (!err.response)
269
+ context.commit('insereNotificacaoErroApi');
254
270
  return false;
255
271
  })
256
272
  },
@@ -275,7 +291,12 @@ export default {
275
291
  }
276
292
 
277
293
  }, (err) => {
278
- context.commit('insereNotificacaoErroApi');
294
+ if (err.response)
295
+ if (err.response.status === 403)
296
+ context.commit('insereNotificacao', [{ mensagem: "Usuário não autorizado!" }])
297
+
298
+ if (!err.response)
299
+ context.commit('insereNotificacaoErroApi');
279
300
  return false;
280
301
  })
281
302
  },
@@ -320,7 +341,12 @@ export default {
320
341
  return response.data;
321
342
  }
322
343
  }, (err) => {
323
- context.commit('insereNotificacaoErroApi');
344
+ if (err.response)
345
+ if (err.response.status === 403)
346
+ context.commit('insereNotificacao', [{ mensagem: "Usuário não autorizado!" }])
347
+
348
+ if (!err.response)
349
+ context.commit('insereNotificacaoErroApi');
324
350
  return false;
325
351
  })
326
352
  },
@@ -340,7 +366,12 @@ export default {
340
366
  return response.data;
341
367
  }
342
368
  }, (err) => {
343
- context.commit('insereNotificacaoErroApi');
369
+ if (err.response)
370
+ if (err.response.status === 403)
371
+ context.commit('insereNotificacao', [{ mensagem: "Usuário não autorizado!" }])
372
+
373
+ if (!err.response)
374
+ context.commit('insereNotificacaoErroApi');
344
375
  return false;
345
376
  })
346
377
  },