Merge branch 'dev-denzel' into cja_new

This commit is contained in:
cja committed 2025-06-03 14:55:50 +03:00
commit 5c02e0e0f9
3 files changed
+12 -4

No files matched your search

+1
View File
@@ -445,6 +445,7 @@ class TestResultView(generics.ListCreateAPIView):
'answer': None, 'answer': None,
}) })
# answer_ids = [item['answer'] for item in request.data] # answer_ids = [item['answer'] for item in request.data]
test_info = self.get_test_info(answer_ids, test_id) test_info = self.get_test_info(answer_ids, test_id)
if status == 'testing': if status == 'testing':
test_attempt, testing = self.create_test_attempt(user, test_info) test_attempt, testing = self.create_test_attempt(user, test_info)
@@ -67,10 +67,17 @@
</v-row> </v-row>
</v-card> </v-card>
<!-- Если данные отсутствуют, выводим сообщение об этом --> <!-- Если данные отсутствуют, выводим сообщение об этом -->
<v-container v-if="!searchTest.length" :fluid="true" class="empty-state"> <v-container
<v-row class="align-center flex-column pa-8"> v-if="!searchTest.length"
:fluid="true"
class="empty-state"
style="min-height: 70vh;"
>
<v-row class="align-center flex-column pa-8" style="min-height: 300px;">
<v-icon icon="mdi-note-off-outline" color="grey-lighten-1" size="64" class="mb-4" /> <v-icon icon="mdi-note-off-outline" color="grey-lighten-1" size="64" class="mb-4" />
<v-card-title class="text-h5 text-grey-darken-1 font-weight-medium text-center">Данные не найдены</v-card-title> <v-card-title class="text-h5 text-grey-darken-1 font-weight-medium text-center">
Данные не найдены
</v-card-title>
</v-row> </v-row>
</v-container> </v-container>
</template> </template>
@@ -36,7 +36,7 @@
<v-tooltip location="bottom"> <v-tooltip location="bottom">
<template v-slot:activator="{ props }"> <template v-slot:activator="{ props }">
<v-btn icon @click="toggleTheme"> <v-btn icon @click="toggleTheme">
<v-icon v-bind="props" class="mr-1" color="lampa"> <v-icon v-bind="props" class="mr-1" :color="theme.global.current.value.dark ? 'yellow' : 'lampa'">
mdi-lightbulb-outline mdi-lightbulb-outline
</v-icon> </v-icon>
</v-btn> </v-btn>