Editor TypeScript
This commit is contained in:
@@ -140,7 +140,7 @@ export class AppState {
|
||||
);
|
||||
}
|
||||
|
||||
async setSelectedNote(note: SNNote) {
|
||||
async setSelectedNote(note?: SNNote) {
|
||||
const run = async () => {
|
||||
const previousNote = this.selectedNote;
|
||||
this.selectedNote = note;
|
||||
@@ -166,6 +166,12 @@ export class AppState {
|
||||
}
|
||||
}
|
||||
|
||||
getNoteTags(note: SNNote) {
|
||||
return this.application.referencesForItem(note).filter((ref) => {
|
||||
return ref.content_type === note.content_type;
|
||||
}) as SNTag[]
|
||||
}
|
||||
|
||||
getSelectedTag() {
|
||||
return this.selectedTag;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user