mirror of
https://github.com/standardnotes/web.git
synced 2024-09-11 14:55:35 +03:00
chore: lint
This commit is contained in:
parent
369ece1a50
commit
dc9c1ea0fc
@ -44,6 +44,7 @@ export class DesktopManager
|
||||
|
||||
async onAppEvent(eventName: ApplicationEvent) {
|
||||
super.onAppEvent(eventName);
|
||||
|
||||
if (eventName === ApplicationEvent.LocalDataLoaded) {
|
||||
this.dataLoaded = true;
|
||||
this.bridge.onInitialDataLoad();
|
||||
@ -74,6 +75,7 @@ export class DesktopManager
|
||||
if (!this.isDesktop) {
|
||||
return;
|
||||
}
|
||||
|
||||
Promise.all(
|
||||
components.map((component) => {
|
||||
return this.convertComponentForTransmission(component);
|
||||
|
@ -357,20 +357,20 @@ export class AppState {
|
||||
|
||||
const selectedTag = this.tags.selected;
|
||||
|
||||
const isBrowswingTrashedNotes =
|
||||
selectedTag instanceof SmartView &&
|
||||
selectedTag.uuid === SystemViewId.TrashedNotes;
|
||||
|
||||
const isBrowsingArchivedNotes =
|
||||
selectedTag instanceof SmartView &&
|
||||
selectedTag.uuid === SystemViewId.ArchivedNotes;
|
||||
|
||||
for (const note of changedOrInserted) {
|
||||
const noteController = this.noteControllerForNote(note.uuid);
|
||||
if (!noteController) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const isBrowswingTrashedNotes =
|
||||
selectedTag instanceof SmartView &&
|
||||
selectedTag.uuid === SystemViewId.TrashedNotes;
|
||||
|
||||
const isBrowsingArchivedNotes =
|
||||
selectedTag instanceof SmartView &&
|
||||
selectedTag.uuid === SystemViewId.ArchivedNotes;
|
||||
|
||||
if (
|
||||
note.trashed &&
|
||||
!isBrowswingTrashedNotes &&
|
||||
|
Loading…
Reference in New Issue
Block a user