feat: add NSFW confirm alert

This commit is contained in:
Sebin Nyshkim 2020-12-19 21:30:27 +01:00
parent 80be636384
commit d1a7f89c2e
4 changed files with 166 additions and 13 deletions

View file

@ -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>