Add more pages in the WebUI
This commit is contained in:
parent
2b828765e3
commit
fcc1109e76
82 changed files with 5005 additions and 249 deletions
|
@ -1,8 +1,8 @@
|
|||
import entrypointsService from '../../_services/EntrypointsService'
|
||||
import EntrypointsService from '../../_services/EntrypointsService'
|
||||
|
||||
export function getAll ({ commit }) {
|
||||
commit('getAllRequest')
|
||||
return entrypointsService.getAll()
|
||||
return EntrypointsService.getAll()
|
||||
.then(body => {
|
||||
commit('getAllSuccess', body)
|
||||
return body
|
||||
|
@ -12,3 +12,16 @@ export function getAll ({ commit }) {
|
|||
return Promise.reject(error)
|
||||
})
|
||||
}
|
||||
|
||||
export function getByName ({ commit }, name) {
|
||||
commit('getByNameRequest')
|
||||
return EntrypointsService.getByName(name)
|
||||
.then(body => {
|
||||
commit('getByNameSuccess', body)
|
||||
return body
|
||||
})
|
||||
.catch(error => {
|
||||
commit('getByNameFailure', error)
|
||||
return Promise.reject(error)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue