mirror of
https://github.com/Av0idD4rk/packmate.git
synced 2026-10-23 16:31:01 +00:00
Change service edit endpoint
This commit is contained in:
parent
2cbc08f79e
commit
f33613ed6b
@ -102,7 +102,16 @@
|
||||
return;
|
||||
}
|
||||
console.debug('Submitting service...', this.service, this.creating);
|
||||
this.$http.post('service/', this.service)
|
||||
|
||||
let url;
|
||||
|
||||
if (this.creating) {
|
||||
url = 'service/';
|
||||
} else {
|
||||
url = 'service/' + this.initialService.port
|
||||
}
|
||||
|
||||
this.$http.post(url, this.service)
|
||||
.then(response => {
|
||||
console.info('Done editing/creating service', response.data);
|
||||
this.$emit('service-update-needed');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user