summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/BackendModuleEdit.vue
diff options
context:
space:
mode:
authorJannik Schönartz2018-07-30 05:22:01 +0200
committerJannik Schönartz2018-07-30 05:22:01 +0200
commit2429d444a2ecae9b4156561a895c1a74d4ed149a (patch)
tree71300ed538b2350a3713aa70d50cf8bf6e60c2db /webapp/src/components/BackendModuleEdit.vue
parent[server] Refactored redundant variable naming. Fixed eslint. :| (diff)
downloadbas-2429d444a2ecae9b4156561a895c1a74d4ed149a.tar.gz
bas-2429d444a2ecae9b4156561a895c1a74d4ed149a.tar.xz
bas-2429d444a2ecae9b4156561a895c1a74d4ed149a.zip
[webapp] Refactored redundant variable naming.
Diffstat (limited to 'webapp/src/components/BackendModuleEdit.vue')
-rw-r--r--webapp/src/components/BackendModuleEdit.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/webapp/src/components/BackendModuleEdit.vue b/webapp/src/components/BackendModuleEdit.vue
index d693a15..5b60e09 100644
--- a/webapp/src/components/BackendModuleEdit.vue
+++ b/webapp/src/components/BackendModuleEdit.vue
@@ -218,10 +218,10 @@ export default {
submit (event) {
if (this.$refs.form.validate()) {
this.$http.post('/api/backends/save', {
- backendId: this.backendId,
- backendName: this.backendName,
- backendType: this.backendType,
- backendCredentials: this.credentials
+ id: this.backendId,
+ name: this.backendName,
+ type: this.backendType,
+ credentials: this.credentials
}).then(response => {
// TODO: Add backend saved successfull msg.
console.log('TODO: Implement snackbar and print backend added successfully msg.')