@nixweb/nixloc-ui 0.0.155 → 0.0.156
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,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<FixedBar
|
|
3
|
+
<FixedBar
|
|
4
|
+
position="footer"
|
|
5
|
+
backgroundColor="#FAFAFC"
|
|
6
|
+
v-show="formDirty && !modal.open && on"
|
|
7
|
+
>
|
|
4
8
|
<div class="margin">
|
|
5
9
|
<Button
|
|
6
10
|
_key="cancelSaveCancel"
|
|
@@ -38,6 +42,7 @@ export default {
|
|
|
38
42
|
data() {
|
|
39
43
|
return {
|
|
40
44
|
id: this.$route.params.id,
|
|
45
|
+
on: false,
|
|
41
46
|
};
|
|
42
47
|
},
|
|
43
48
|
mounted() {
|
|
@@ -49,10 +54,17 @@ export default {
|
|
|
49
54
|
self.removeLoading(["panel"]);
|
|
50
55
|
}, 350);
|
|
51
56
|
}
|
|
57
|
+
|
|
58
|
+
let self = this;
|
|
59
|
+
setTimeout(function () {
|
|
60
|
+
self.updateFormDirty(false);
|
|
61
|
+
self.on = true;
|
|
62
|
+
}, 1000);
|
|
52
63
|
},
|
|
53
64
|
computed: {
|
|
54
65
|
...mapState("validation", ["formDirty"]),
|
|
55
66
|
...mapState("generic", ["loading"]),
|
|
67
|
+
...mapGetters("generic", ["event"]),
|
|
56
68
|
...mapGetters("validation", ["isFormValid"]),
|
|
57
69
|
...mapState("generic", ["modal"]),
|
|
58
70
|
},
|
|
@@ -321,13 +321,16 @@ export default {
|
|
|
321
321
|
|
|
322
322
|
context.commit('addNotifications', response.data.notifications)
|
|
323
323
|
context.commit('addToast', 'postApiError');
|
|
324
|
+
|
|
324
325
|
return response.data;
|
|
325
326
|
}
|
|
326
327
|
}, (err) => {
|
|
327
328
|
|
|
328
329
|
if (err.response)
|
|
329
|
-
if (err.response.status === 403)
|
|
330
|
+
if (err.response.status === 403) {
|
|
330
331
|
context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
|
|
332
|
+
context.commit('addToast', 'falhaGenerica');
|
|
333
|
+
}
|
|
331
334
|
|
|
332
335
|
if (!err.response)
|
|
333
336
|
context.commit('addNotificationErrorApi');
|
|
@@ -357,8 +360,10 @@ export default {
|
|
|
357
360
|
}
|
|
358
361
|
}, (err) => {
|
|
359
362
|
if (err.response)
|
|
360
|
-
if (err.response.status === 403)
|
|
363
|
+
if (err.response.status === 403) {
|
|
361
364
|
context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
|
|
365
|
+
context.commit('addToast', 'falhaGenerica');
|
|
366
|
+
}
|
|
362
367
|
|
|
363
368
|
if (!err.response)
|
|
364
369
|
context.commit('addNotificationErrorApi');
|
|
@@ -436,8 +441,10 @@ export default {
|
|
|
436
441
|
|
|
437
442
|
}, (err) => {
|
|
438
443
|
if (err.response)
|
|
439
|
-
if (err.response.status === 403)
|
|
444
|
+
if (err.response.status === 403) {
|
|
440
445
|
context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
|
|
446
|
+
context.commit('addToast', 'falhaGenerica');
|
|
447
|
+
}
|
|
441
448
|
|
|
442
449
|
if (!err.response)
|
|
443
450
|
context.commit('addNotificationErrorApi');
|
|
@@ -470,8 +477,10 @@ export default {
|
|
|
470
477
|
|
|
471
478
|
}, (err) => {
|
|
472
479
|
if (err.response)
|
|
473
|
-
if (err.response.status === 403)
|
|
480
|
+
if (err.response.status === 403) {
|
|
474
481
|
context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
|
|
482
|
+
context.commit('addToast', 'falhaGenerica');
|
|
483
|
+
}
|
|
475
484
|
|
|
476
485
|
if (!err.response)
|
|
477
486
|
context.commit('addNotificationErrorApi');
|
|
@@ -500,8 +509,10 @@ export default {
|
|
|
500
509
|
|
|
501
510
|
}, (err) => {
|
|
502
511
|
if (err.response)
|
|
503
|
-
if (err.response.status === 403)
|
|
512
|
+
if (err.response.status === 403) {
|
|
504
513
|
context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
|
|
514
|
+
context.commit('addToast', 'falhaGenerica');
|
|
515
|
+
}
|
|
505
516
|
|
|
506
517
|
if (!err.response)
|
|
507
518
|
context.commit('addNotificationErrorApi');
|
|
@@ -550,8 +561,10 @@ export default {
|
|
|
550
561
|
}
|
|
551
562
|
}, (err) => {
|
|
552
563
|
if (err.response)
|
|
553
|
-
if (err.response.status === 403)
|
|
554
|
-
context.commit('addNotifications', [{ message: "Usuário sem permissão para
|
|
564
|
+
if (err.response.status === 403) {
|
|
565
|
+
context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
|
|
566
|
+
context.commit('addToast', 'falhaGenerica');
|
|
567
|
+
}
|
|
555
568
|
|
|
556
569
|
if (!err.response)
|
|
557
570
|
context.commit('addNotificationErrorApi');
|
|
@@ -580,8 +593,10 @@ export default {
|
|
|
580
593
|
}
|
|
581
594
|
}, (err) => {
|
|
582
595
|
if (err.response)
|
|
583
|
-
if (err.response.status === 403)
|
|
584
|
-
context.commit('addNotifications', [{ message: "Usuário sem permissão para
|
|
596
|
+
if (err.response.status === 403) {
|
|
597
|
+
context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
|
|
598
|
+
context.commit('addToast', 'falhaGenerica');
|
|
599
|
+
}
|
|
585
600
|
|
|
586
601
|
if (!err.response)
|
|
587
602
|
context.commit('addNotificationErrorApi');
|