Fix crush discard confirmation when Accepted + some UI fixes

This commit is contained in:
Niko 2022-03-02 18:57:11 +01:00
parent 9529520bcd
commit 5610cde131
3 changed files with 8 additions and 1 deletions

View File

@ -41,6 +41,7 @@ body {
bottom: 0;
width: 100%;
height: 100%;
z-index: 100;
}
.overlay.dark {
background: #040404c2;

View File

@ -520,6 +520,11 @@ app.preload = {
'home.quiz_item',
]);
},
meet: function() {
app.template.loadMany([
'overlay.view_image',
]);
},
quiz: function() {
app.script('pages.quiz');
app.template.loadMany([

View File

@ -26,6 +26,7 @@ app.pages.meet = {
});
}
app.preload.home();
app.preload.meet();
});
},
loadMore: function() {
@ -182,7 +183,7 @@ app.pages.meet = {
if (current === undefined || current === null)
return app.toast.error(s('app.error.unknown_error'));
if (typeof current.quiz_id !== 'string' &&
if (typeof current.quiz_id === 'string' &&
!await app.toast.warnConfirm(s('app.confirm.crush_discard')))
return false;