add joint account
This commit is contained in:
@@ -108,9 +108,9 @@
|
||||
|
||||
<script>
|
||||
import {BCard, BTabs, BTable, BButton, BTab, BCardText, BCardTitle, BIconPlusCircleFill, BModal, BFormGroup, BFormInput} from "bootstrap-vue";
|
||||
import {createJointAccount, getJointAccounts, deleteAnJointAccount} from "@/service/noscomptes";
|
||||
import {createJointAccount, getJointAccounts, deleteAJointAccount} from "@/service/jointAccount";
|
||||
export default {
|
||||
name: 'notre_compte',
|
||||
name: 'joint_account',
|
||||
data: function () {
|
||||
return {
|
||||
loggedUser: this.$store.state.loggedUser,
|
||||
@@ -139,7 +139,7 @@ export default {
|
||||
methods: {
|
||||
deleteJointAccount(){
|
||||
let loggedUser = this.$store.state.loggedUser
|
||||
deleteAnJointAccount(loggedUser.oauth_token, loggedUser.nosComptesId, this.jointAccountIdToDelete).then(() => {
|
||||
deleteAJointAccount(loggedUser.oauth_token, loggedUser.nosComptesId, this.jointAccountIdToDelete).then(() => {
|
||||
this.loadJointAccounts()
|
||||
this.$refs['delete-jointAccount'].hide()
|
||||
})
|
||||
@@ -164,6 +164,7 @@ export default {
|
||||
this.user= ""
|
||||
},
|
||||
validateForm() {
|
||||
console.log("toto")
|
||||
let loggedUser = this.$store.state.loggedUser
|
||||
this.nameState= undefined
|
||||
createJointAccount(loggedUser.oauth_token, loggedUser.nosComptesId, {"name": this.name})
|
||||
|
||||
Reference in New Issue
Block a user