mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
final polish :)
This commit is contained in:
parent
a6cbbbeaf1
commit
556adf2e37
@ -22,18 +22,14 @@
|
|||||||
|
|
||||||
<ds-card>
|
<ds-card>
|
||||||
<div class="blur-toggle">
|
<div class="blur-toggle">
|
||||||
<label for="blur-img">{{ $t('contribution.shockingPicture') }}</label>
|
<label for="blur-img">{{ $t('contribution.inappropriatePicture') }}</label>
|
||||||
<input
|
<input name="checkbox" type="checkbox" id="blur-img" v-model="blurImage" />
|
||||||
name="checkbox"
|
<p>
|
||||||
class="blurImageCheckbox"
|
|
||||||
type="checkbox"
|
|
||||||
id="blur-img"
|
|
||||||
v-model="blurImage"
|
|
||||||
/>
|
|
||||||
<a href="https://faq.human-connection.org/" target="_blank" class="link">
|
<a href="https://faq.human-connection.org/" target="_blank" class="link">
|
||||||
{{ $t('contribution.shockingPicture-text') }}
|
{{ $t('contribution.inappropriatePictureText') }}
|
||||||
<ds-icon name="question-circle" />
|
<ds-icon name="question-circle" />
|
||||||
</a>
|
</a>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ds-space />
|
<ds-space />
|
||||||
|
|||||||
@ -103,7 +103,6 @@ export default {
|
|||||||
if (contributionImage) contributionImage.remove()
|
if (contributionImage) contributionImage.remove()
|
||||||
},
|
},
|
||||||
initCropper() {
|
initCropper() {
|
||||||
// console.log(' new Image initCropper')
|
|
||||||
this.image = new Image()
|
this.image = new Image()
|
||||||
this.image.src = URL.createObjectURL(this.file)
|
this.image.src = URL.createObjectURL(this.file)
|
||||||
this.editor.appendChild(this.image)
|
this.editor.appendChild(this.image)
|
||||||
@ -122,7 +121,6 @@ export default {
|
|||||||
}, 'image/jpeg')
|
}, 'image/jpeg')
|
||||||
},
|
},
|
||||||
setupPreview(canvas) {
|
setupPreview(canvas) {
|
||||||
// console.log(' new Image setupPreview')
|
|
||||||
this.image = new Image()
|
this.image = new Image()
|
||||||
this.image.src = canvas.toDataURL()
|
this.image.src = canvas.toDataURL()
|
||||||
this.image.classList.add('thumbnail-preview')
|
this.image.classList.add('thumbnail-preview')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user