summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/BackendModuleEdit.vue
diff options
context:
space:
mode:
authorJannik Schönartz2018-07-31 15:40:02 +0200
committerJannik Schönartz2018-07-31 15:40:02 +0200
commit88eec63c09a7d047ed470ba2f395195062365ce1 (patch)
treeb5f1e1e65f8302b723f5d14793343be16ae52e2e /webapp/src/components/BackendModuleEdit.vue
parent[server/external-backends] Added iDoIT Api call for getting the locationtree ... (diff)
downloadbas-88eec63c09a7d047ed470ba2f395195062365ce1.tar.gz
bas-88eec63c09a7d047ed470ba2f395195062365ce1.tar.xz
bas-88eec63c09a7d047ed470ba2f395195062365ce1.zip
[webapp/external-backends] Splitted the edit and delete Dialog.
Diffstat (limited to 'webapp/src/components/BackendModuleEdit.vue')
-rw-r--r--webapp/src/components/BackendModuleEdit.vue12
1 files changed, 10 insertions, 2 deletions
diff --git a/webapp/src/components/BackendModuleEdit.vue b/webapp/src/components/BackendModuleEdit.vue
index 664ace5..c5ef75f 100644
--- a/webapp/src/components/BackendModuleEdit.vue
+++ b/webapp/src/components/BackendModuleEdit.vue
@@ -27,6 +27,13 @@
}
</i18n>
<template>
+ <v-dialog
+ v-if="$store.state.backends.edit"
+ :value="$store.state.backends.edit"
+ @input="$store.commit('backends/setEdit', { show: $event })"
+ max-width="700px"
+ scrollable
+ >
<!-- dialog needs scrollable attribute-->
<v-card>
<v-card-title style="padding: 0px">
@@ -105,13 +112,14 @@
<v-divider></v-divider>
<v-card-actions>
<v-flex xl10 offset-xl2 lg12 text-xs-right>
- <v-btn flat @click.native="$store.commit('backends/setDialog', { show: false })">{{ $t('cancel') }}</v-btn>
+ <v-btn flat @click.native="$store.commit('backends/setEdit', false)">{{ $t('cancel') }}</v-btn>
<v-btn color="primary" v-show="step == 1" @click.native="completeStepOne()">{{ $t('continue') }}</v-btn>
<v-btn color="primary" v-show="step == 2" @click.native="completeStepTwo()">{{ $t('continue') }}</v-btn>
<v-btn type="submit" @click="submit" v-show="step == 3" class="primary" raised>{{ $t('submit') }}</v-btn>
</v-flex>
</v-card-actions>
</v-card>
+ </v-dialog>
</template>
<script>
@@ -150,7 +158,7 @@ export default {
// TODO: Add backend saved successfull msg.
console.log('TODO: Implement snackbar and print backend added successfully msg.')
this.$store.dispatch('backends/loadData')
- this.$store.commit('backends/setDialog', { show: false })
+ this.$store.commit('backends/setEdit', false)
}).catch(error => {
console.log(error)
// if (error.response.data.status === '') {