styling, add&del buttons...
This commit is contained in:
@@ -6,7 +6,7 @@ class AgentsModel extends WindozModel {
|
||||
}
|
||||
|
||||
async getTypes(family) {
|
||||
let endpoint = app.config.api[this.ressource].getTypes
|
||||
let endpoint = {...app.config.api[this.ressource].getTypes}
|
||||
endpoint.uri = endpoint.uri.replace('{family}', family)
|
||||
return (
|
||||
this.request(endpoint.uri, endpoint.method)
|
||||
@@ -15,7 +15,7 @@ class AgentsModel extends WindozModel {
|
||||
}
|
||||
|
||||
async getSprites(group) {
|
||||
let endpoint = app.config.api[this.ressource].getSprites
|
||||
let endpoint = {...app.config.api[this.ressource].getSprites}
|
||||
endpoint.uri = endpoint.uri.replace('{group}', group)
|
||||
return (
|
||||
this.request(endpoint.uri, endpoint.method)
|
||||
@@ -23,8 +23,8 @@ class AgentsModel extends WindozModel {
|
||||
)
|
||||
}
|
||||
|
||||
async getProperties(id) {
|
||||
let endpoint = app.config.api[this.ressource].getProperties
|
||||
async getProperties(id) {
|
||||
let endpoint = {...app.config.api[this.ressource].getProperties}
|
||||
endpoint.uri = endpoint.uri.replace('{id}', id)
|
||||
return (
|
||||
this.request(endpoint.uri, endpoint.method)
|
||||
|
||||
Reference in New Issue
Block a user