Skip to content

Commit

Permalink
Select addTags/removeTags into multi-edit dialog.
Browse files Browse the repository at this point in the history
Not yet used for anything.

Part of #688. Part of #174.
  • Loading branch information
jkomoros committed Mar 30, 2024
1 parent df61c5a commit 34d965c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/components/multi-edit-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ import {
selectMultiEditReferencesDiff,
selectSelectedCards,
selectCardModificationPending,
selectSelectedCardsReferencesIntersection
selectSelectedCardsReferencesIntersection,
selectMultiEditAddTags,
selectMultiEditRemoveTags
} from '../selectors.js';

import {
Expand Down Expand Up @@ -66,6 +68,7 @@ import {
ReferenceType,
referenceTypeSchema,
State,
TagID,
TagInfos
} from '../types.js';

Expand All @@ -92,6 +95,12 @@ class MultiEditDialog extends connect(store)(DialogElement) {

@state()
_referencesDiff: ReferencesEntriesDiff;

@state()
_addTags: TagID[];

@state()
_removeTags: TagID[];

@state()
_selectedCards: Card[];
Expand Down Expand Up @@ -258,6 +267,8 @@ class MultiEditDialog extends connect(store)(DialogElement) {
this._intersectionReferencesCard = this.open ? selectSelectedCardsReferencesIntersection(state) : {};
this._cardTagInfos = selectTagInfosForCards(state);
this._referencesDiff = selectMultiEditReferencesDiff(state);
this._addTags = selectMultiEditAddTags(state);
this._removeTags = selectMultiEditRemoveTags(state);
this._selectedCards = selectSelectedCards(state);
this._cardModificationPending = selectCardModificationPending(state);
}
Expand Down

0 comments on commit 34d965c

Please sign in to comment.