@enso-ui/teams 4.0.10 → 4.0.11

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/teams",
3
- "version": "4.0.10",
3
+ "version": "4.0.11",
4
4
  "description": "Basic teams package",
5
5
  "main": "src/bulma/pages/teams/Index.vue",
6
6
  "scripts": {
@@ -70,7 +70,7 @@ library.add(faPlus, faSearch, faSpinner);
70
70
  export default {
71
71
  name: 'Index',
72
72
 
73
- inject: ['errorHandler', 'i18n', 'route'],
73
+ inject: ['errorHandler', 'http', 'i18n', 'route'],
74
74
 
75
75
  components: { Fa, Team },
76
76
 
@@ -99,7 +99,7 @@ export default {
99
99
  fetch() {
100
100
  this.loading = true;
101
101
 
102
- axios.get(this.route('administration.teams.index'))
102
+ this.http.get(this.route('administration.teams.index'))
103
103
  .then(({ data }) => {
104
104
  this.teams = data;
105
105
  this.loading = false;
@@ -98,7 +98,7 @@ library.add([faBan, faPencilAlt, faTrash, faCheck]);
98
98
  export default {
99
99
  name: 'Team',
100
100
 
101
- inject: ['errorHandler', 'i18n', 'route', 'toastr'],
101
+ inject: ['errorHandler', 'http', 'i18n', 'route', 'toastr'],
102
102
 
103
103
  directives: { focus },
104
104
 
@@ -121,7 +121,7 @@ export default {
121
121
  store() {
122
122
  this.loading = true;
123
123
 
124
- axios.post(this.route('administration.teams.store'), this.team)
124
+ this.http.post(this.route('administration.teams.store'), this.team)
125
125
  .then(({ data }) => {
126
126
  this.loading = false;
127
127
  this.toastr.success(data.message);
@@ -140,7 +140,7 @@ export default {
140
140
  destroy() {
141
141
  this.loading = true;
142
142
 
143
- axios.delete(this.route('administration.teams.destroy', this.team.id))
143
+ this.http.delete(this.route('administration.teams.destroy', this.team.id))
144
144
  .then(({ data }) => {
145
145
  this.loading = false;
146
146
  this.toastr.success(data.message);