mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Composer fixes
This commit is contained in:
parent
e65739a64a
commit
02954e0d01
2 changed files with 15 additions and 12 deletions
|
@ -86,17 +86,19 @@ export default function Composer({ onSubmit, allowFile, fileOnly }) {
|
|||
return
|
||||
}
|
||||
|
||||
const ext = file.name.split('.').reverse()[0]
|
||||
if (
|
||||
!constants.imageExts.includes(ext.toLowerCase()) &&
|
||||
!constants.videoExts.includes(ext.toLowerCase())
|
||||
) {
|
||||
alert(
|
||||
`Kérlek helyes formátum fájlt tölts fel! (${constants.imageExts.join(
|
||||
', '
|
||||
)}, ${constants.videoExts.join(', ')})`
|
||||
)
|
||||
return
|
||||
if (allowFile || fileOnly) {
|
||||
const ext = file.name.split('.').reverse()[0]
|
||||
if (
|
||||
!constants.imageExts.includes(ext.toLowerCase()) &&
|
||||
!constants.videoExts.includes(ext.toLowerCase())
|
||||
) {
|
||||
alert(
|
||||
`Kérlek helyes formátum fájlt tölts fel! (${constants.imageExts.join(
|
||||
', '
|
||||
)}, ${constants.videoExts.join(', ')})`
|
||||
)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
onSubmit(title, val, file)
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
.container > textarea {
|
||||
margin-left: 1px;
|
||||
width: 99%;
|
||||
resize: none;
|
||||
resize: vertical;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.typeSelector {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue