Skip to content

Commit

Permalink
Reset des données
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyFrogeye committed May 7, 2016
1 parent f4bbcea commit 5f0b128
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,24 @@ var app = new Vue({
cb(retour, donnees)
})
},
resetDonnees: function() {
this.login = ''
this.droit = ''
this.jeton = ''
this.connecte = false
this.date = 1
this.mdp = ''
this.idCarte = ''
this.solde = ''
this.credit = ''
this.prix = ''
this.moi = {}
this.u_nouveau = {}
this.clients = []
this.transactions = []
this.utilisateurs = []
this.statistiques = {}
},
actuClients: function() {
var that = this
this.api("client/liste", {}, function(retour, donnees) {
Expand Down Expand Up @@ -285,7 +303,7 @@ var app = new Vue({
this.api("utilisateur/deconnexion", {} , function(retour, donnees) {
switch(retour) {
case "ok":
that.moi = {}
that.resetDonnees()
that.page = 'connexion'
break;

Expand Down

0 comments on commit 5f0b128

Please sign in to comment.