aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/CollectionCardDeckView.tsx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionCardDeckView.tsx b/src/client/views/collections/CollectionCardDeckView.tsx
index 127c4dc48..d68fb57f8 100644
--- a/src/client/views/collections/CollectionCardDeckView.tsx
+++ b/src/client/views/collections/CollectionCardDeckView.tsx
@@ -19,6 +19,7 @@ import { DocumentView } from '../nodes/DocumentView';
import { GPTPopup, GPTPopupMode } from '../pdf/GPTPopup/GPTPopup';
import './CollectionCardDeckView.scss';
import { CollectionSubView } from './CollectionSubView';
+import { FieldsDropdown } from '../FieldsDropdown';
enum cardSortings {
Time = 'time',
@@ -384,6 +385,8 @@ export class CollectionCardView extends CollectionSubView() {
return response; // Return the response from gptImageLabel
} catch (error) {
console.log('bad things have happened');
+
+ console.log(error)
}
return '';
};
@@ -517,6 +520,16 @@ export class CollectionCardView extends CollectionSubView() {
onMouseLeave={() => this.setHoveredNodeIndex(-1)}>
{this.renderCards()}
</div>
+ <div className="collectionNotetaking-pivotField" style={{ right: 0, top: 0, position: 'absolute' }}>
+ <FieldsDropdown
+ Document={this.Document}
+ selectFunc={undoable(fieldKey => {
+ this.layoutDoc._pivotField = fieldKey;
+ // this.removeEmptyColumns();
+ }, 'change pivot field')}
+ placeholder={StrCast(this.layoutDoc._pivotField)}
+ />
+ </div>
</div>
);
}