before remerve from turbo to master

This commit is contained in:
2022-11-15 17:17:47 +01:00
parent cd5f4e6590
commit 27454709af
8 changed files with 1076 additions and 37 deletions

@ -1,34 +0,0 @@
import { Controller } from '@hotwired/stimulus'
import Swal from 'sweetalert2'
export default class extends Controller {
static values = {
cropImage: String
}
connect() {
console.log('crop', this.cropImageValue)
window.CropAvatar = this
}
open() {
console.log('open crop')
Swal.fire({
title: 'Are you sure?',
text: "You won't be able to revert this!",
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes, delete it!',
}).then((result) => {
if (result.isConfirmed) {
Swal.fire(
'Deleted!',
'Your file has been deleted.',
'success',
)
}
})
}
}