Skip to content

Commit ce0773d

Browse files
authored
Refactor PauseConfirm.vue checkbox input
1 parent 71f3a44 commit ce0773d

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/components/PauseConfirm.vue

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@
1111
<div class="modal-body">
1212
<slot />
1313
<div class="form-check mt-3">
14-
<input
15-
id="doNotShowAgain"
16-
v-model="doNotShowAgain"
17-
class="form-check-input"
18-
type="checkbox"
19-
/>
14+
<input id="doNotShowAgain" v-model="doNotShowAgain" class="form-check-input" type="checkbox" />
2015
<label class="form-check-label" for="doNotShowAgain">
2116
{{ $t("Do not show this again") }}
2217
</label>
@@ -56,7 +51,7 @@ export default {
5651
default: "No",
5752
}
5853
},
59-
emits: [ "yes", "no" ],
54+
emits: ["yes", "no"],
6055
data() {
6156
return {
6257
modal: null,
@@ -82,8 +77,8 @@ export default {
8277
yes() {
8378
if (this.doNotShowAgain) {
8479
// Update the setting via socket
85-
this.$root.getSocket().emit("setSettings", {
86-
skipPauseConfirm: true
80+
this.$root.getSocket().emit("setSettings", {
81+
skipPauseConfirm: true
8782
}, "", (res) => {
8883
if (res.ok) {
8984
// Update local info

0 commit comments

Comments
 (0)