mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Changed lotsa stuff 2
This commit is contained in:
parent
7bb7b919ae
commit
1f90e62ac3
10 changed files with 119 additions and 190 deletions
|
@ -6,6 +6,7 @@ import QuestionSearchResult from '../components/QuestionSearchResult.js'
|
|||
import Subject from '../components/Subject.js'
|
||||
import SubjectSelector from '../components/SubjectSelector.js'
|
||||
import Sleep from '../components/sleep'
|
||||
import ExternalLinkIcon from '../components/externalLinkIcon'
|
||||
|
||||
import styles from './allQuestions.module.css'
|
||||
|
||||
|
@ -258,23 +259,21 @@ export default function AllQuestions({ router }) {
|
|||
>
|
||||
Tárgyak
|
||||
</div>
|
||||
<div>
|
||||
<a
|
||||
onClick={() => {
|
||||
if (selectedDb === 'all') {
|
||||
window.open(`${constants.apiUrl}allqr.txt`, '_blank')
|
||||
} else {
|
||||
window.open(
|
||||
`${constants.apiUrl}allqr.txt?db=${selectedDb}`,
|
||||
'_blank'
|
||||
)
|
||||
}
|
||||
}}
|
||||
className={styles.button}
|
||||
>
|
||||
{'Kérdések letöltése'}
|
||||
</a>
|
||||
</div>
|
||||
<a
|
||||
onClick={() => {
|
||||
if (selectedDb === 'all') {
|
||||
window.open(`${constants.apiUrl}allqr.txt`, '_blank')
|
||||
} else {
|
||||
window.open(
|
||||
`${constants.apiUrl}allqr.txt?db=${selectedDb}`,
|
||||
'_blank'
|
||||
)
|
||||
}
|
||||
}}
|
||||
>
|
||||
{'Kérdések letöltése'}
|
||||
<ExternalLinkIcon size={15} />
|
||||
</a>
|
||||
</div>
|
||||
{fetchingData ? (
|
||||
<LoadingIndicator />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue