aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/CollectionCardDeckView.tsx6
-rw-r--r--src/client/views/pdf/GPTPopup/GPTPopup.tsx3
2 files changed, 7 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionCardDeckView.tsx b/src/client/views/collections/CollectionCardDeckView.tsx
index d3e23c962..60befebec 100644
--- a/src/client/views/collections/CollectionCardDeckView.tsx
+++ b/src/client/views/collections/CollectionCardDeckView.tsx
@@ -301,7 +301,7 @@ export class CollectionCardView extends CollectionSubView() {
sort = (docs: Doc[], sortType: cardSortings, isDesc: boolean, dragIndex: number) => {
// if (sortType === cardSortings.None) return docs;
- if(sortType !== cardSortings.None){
+ // if(sortType !== cardSortings.None){
docs.sort((docA, docB) => {
const [typeA, typeB] = (() => {
@@ -318,6 +318,7 @@ export class CollectionCardView extends CollectionSubView() {
case cardSortings.Chat:
return [NumCast(docA.chat) ?? 9999,
NumCast(docB.chat) ?? 9999]
+
default:
return [StrCast(docA.type), StrCast(docB.type)]
}
@@ -333,7 +334,8 @@ export class CollectionCardView extends CollectionSubView() {
return -out
- });}
+ });
+ // }
if (dragIndex != -1) {
const draggedDoc = DragManager.docsBeingDragged[0];
diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx
index 6184a7b73..5a5e80dc4 100644
--- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx
+++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx
@@ -27,9 +27,12 @@ export enum GPTPopupMode {
IMAGE,
FLASHCARD,
DATA,
+ CARD,
SORT,
+ QUIZ
}
+
interface GPTPopupProps {}
@observer