small fixes, cleans up API

This commit is contained in:
2019-08-05 14:41:36 +02:00
parent 3b39428e76
commit 894f5f8200
5 changed files with 86 additions and 57 deletions

View File

@@ -2,11 +2,11 @@
<section class="level is-mobile">
<div class="level-left">
<div class="level-item">
<span class="icon is-large" @click="edit = !edit">
<span class="icon is-large" @click="editing = !editing">
<i class="fas fa-2x fa-piggy-bank"></i>
</span>
</div>
<template v-if="edit">
<template v-if="editing">
<div class="level-item">
<div class="field has-addons">
<p class="control">
@@ -56,7 +56,7 @@
props: ["wealth", "debt"],
data () {
return {
edit: false,
editing: false,
edit_value: 0,
};
},
@@ -66,9 +66,13 @@
this.resetValues();
},
resetValues () {
this.edit = false;
this.editing = false;
this.edit_value = 0;
}
}
}
</script>
<style scoped>
.input { max-width: 9em; }
</style>