feat: ✨ add NSFW confirm alert
This commit is contained in:
parent
80be636384
commit
d1a7f89c2e
4 changed files with 166 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<label class="nsfw-switch" for="nsfw-switch">
|
||||
<label class="nsfw-switch" :for="id">
|
||||
<div>😇</div>
|
||||
<div class="toggle-wrap">
|
||||
<input
|
||||
|
@ -7,7 +7,7 @@
|
|||
@change="$emit('change', $event.target.checked)"
|
||||
type="checkbox"
|
||||
name="nsfw"
|
||||
id="nsfw-switch"
|
||||
:id="id"
|
||||
/>
|
||||
<div class="toggle"></div>
|
||||
</div>
|
||||
|
@ -22,7 +22,8 @@ export default {
|
|||
event: "change"
|
||||
},
|
||||
props: {
|
||||
checked: Boolean
|
||||
checked: Boolean,
|
||||
id: { type: String, required: true }
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue