Skip to content

Commit b4d972e

Browse files
committed
Save and restore taux URL
1 parent 7a712ad commit b4d972e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/JehMaker.vue

+3
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ export default class JehMaker extends Vue {
283283
}
284284
285285
exportUrl () {
286+
let json = { fee: this.fee, phases: this.phases, taux: this.taux }
286287
this.$router.push({ name: 'phases', params: { phases: utf8ToB64(JSON.stringify(json)) } })
287288
this.url = window.location.href
288289
this.$copyText(this.url)
@@ -297,12 +298,14 @@ export default class JehMaker extends Vue {
297298
let jsonImported = JSON.parse(b64ToUtf8(b64))
298299
this.fee = jsonImported.fee
299300
this.phases = jsonImported.phases
301+
this.taux = jsonImported.taux
300302
}
301303
302304
importUrl () {
303305
let urlSplit = this.urlImport.split('/')
304306
if (urlSplit.length > 2 && urlSplit[urlSplit.length - 2] === 'p') {
305307
this.importFromB64(urlSplit[urlSplit.length - 1])
308+
this.calculate()
306309
}
307310
}
308311
}

src/components/Taux.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<tbody>
1616
<tr v-for="label in Object.keys(content)" v-bind:key="label">
1717
<td>{{label}}</td>
18-
<td><sui-input class="w-100" v-model="content[label]" @input="handleInput" type="text"/></td>
18+
<td><sui-input class="w-100" v-model="content[label]" @input="handleInput" type="number"/></td>
1919
</tr>
2020

2121
</tbody>

0 commit comments

Comments
 (0)