From 4521e91a7fd9e7127cf21fdbeba2417881b227ae Mon Sep 17 00:00:00 2001 From: aidahosa1 Date: Fri, 28 Jun 2024 12:25:39 -0400 Subject: and so it continues --- src/client/views/collections/CollectionCardDeckView.tsx | 6 ++++-- src/client/views/pdf/GPTPopup/GPTPopup.tsx | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2