Skip to content

Commit 0c38866

Browse files
Confirm Reset?
1 parent 2a1ba79 commit 0c38866

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ v1.0.2
22
- otpauth-migration-parser fix
33
- pbkdf2 fix
44
- add pin simple code
5+
- add reset all data
56

67
v1.0.0
78
- Add time sync

src/views/Unlock.vue

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,33 @@
2626
</b-form-group>
2727

2828
<div class="row">
29-
3029
<div class="col-6">
3130
<b-button :disabled="!isValid" type="submit" variant="primary" class="w-100 text-uppercase">Unlock</b-button>
3231
</div>
3332
<div class="col-6">
34-
<b-button @click="resetAll" variant="danger" class="w-100 text-uppercase">Reset All data?</b-button>
33+
<b-button @click="show = false" variant="danger" class="w-100 text-uppercase">Reset All data?</b-button>
3534
</div>
36-
3735
</div>
3836

3937

4038

4139

4240
</b-form>
41+
42+
<div v-if="!show">
43+
<p class="text-danger">All your data, including created accounts will be removed from the app and reset to default.</p>
44+
45+
<div class="row">
46+
<div class="col-6">
47+
<b-button @click="show = true" variant="primary" class="w-100 text-uppercase">Back</b-button>
48+
</div>
49+
<div class="col-6">
50+
<b-button @click="resetAll" variant="danger" class="w-100 text-uppercase">Confirm Reset?</b-button>
51+
</div>
52+
</div>
53+
54+
55+
</div>
4356
</div>
4457
</div>
4558
</div>

0 commit comments

Comments
 (0)