@enso-ui/ui 6.2.1 → 6.2.3

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": "@enso-ui/ui",
3
- "version": "6.2.1",
3
+ "version": "6.2.3",
4
4
  "description": "Laravel Enso UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -42,7 +42,7 @@ export default {
42
42
 
43
43
  props: {
44
44
  icon: {
45
- type: String,
45
+ type: [Array, String],
46
46
  required: true,
47
47
  },
48
48
  loading: {
@@ -65,21 +65,24 @@ class ErrorHandler {
65
65
  case 409: case 429: case 488:
66
66
  this.vm.toastr.warning(this.vm.i18n(data.message));
67
67
  break;
68
- case 403:
69
- this.vm.$router.push({ name: 'unauthorized' })
70
- .catch(routerErrorHandler);
71
- break;
72
- case 404:
73
- this.vm.$router.push({ name: 'notFound' })
74
- .catch(routerErrorHandler);
75
- break;
76
- case 413:
77
- this.vm.toastr.warning(this.vm.i18n('Request Entity Too Large'));
78
- break;
79
- case 503:
80
- this.vm.$router.push({ name: 'maintenanceMode' })
81
- .catch(routerErrorHandler);
68
+ case 422:
69
+ this.vm.toastr.warning(this.vm.i18n(data.message));
82
70
  break;
71
+ case 403:
72
+ this.vm.$router.push({ name: 'unauthorized' })
73
+ .catch(routerErrorHandler);
74
+ break;
75
+ case 404:
76
+ this.vm.$router.push({ name: 'notFound' })
77
+ .catch(routerErrorHandler);
78
+ break;
79
+ case 413:
80
+ this.vm.toastr.warning(this.vm.i18n('Request Entity Too Large'));
81
+ break;
82
+ case 503:
83
+ this.vm.$router.push({ name: 'maintenanceMode' })
84
+ .catch(routerErrorHandler);
85
+ break;
83
86
  default:
84
87
  report(this.vm);
85
88
  break;