1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-12-20 20:11:39 +02:00

Confirm Dialog: allow changing the button text

This commit is contained in:
LouisLam 2021-07-31 18:58:12 +08:00
parent 659d83b13c
commit 642a711bcd
2 changed files with 13 additions and 2 deletions

View File

@ -16,3 +16,6 @@ indent_size = 2
[*.yml]
indent_size = 2
[*.vue]
trim_trailing_whitespace = false

View File

@ -13,10 +13,10 @@
</div>
<div class="modal-footer">
<button type="button" class="btn" :class="btnStyle" data-bs-dismiss="modal" @click="yes">
Yes
{{ yesText }}
</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
No
{{ noText }}
</button>
</div>
</div>
@ -33,6 +33,14 @@ export default {
type: String,
default: "btn-primary",
},
yesText: {
type: String,
default: "Yes",
},
noText: {
type: String,
default: "No",
},
},
data: () => ({
modal: null,