chore: lint
This commit is contained in:
@@ -44,6 +44,7 @@ export class DesktopManager
|
|||||||
|
|
||||||
async onAppEvent(eventName: ApplicationEvent) {
|
async onAppEvent(eventName: ApplicationEvent) {
|
||||||
super.onAppEvent(eventName);
|
super.onAppEvent(eventName);
|
||||||
|
|
||||||
if (eventName === ApplicationEvent.LocalDataLoaded) {
|
if (eventName === ApplicationEvent.LocalDataLoaded) {
|
||||||
this.dataLoaded = true;
|
this.dataLoaded = true;
|
||||||
this.bridge.onInitialDataLoad();
|
this.bridge.onInitialDataLoad();
|
||||||
@@ -74,6 +75,7 @@ export class DesktopManager
|
|||||||
if (!this.isDesktop) {
|
if (!this.isDesktop) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Promise.all(
|
Promise.all(
|
||||||
components.map((component) => {
|
components.map((component) => {
|
||||||
return this.convertComponentForTransmission(component);
|
return this.convertComponentForTransmission(component);
|
||||||
|
|||||||
@@ -357,20 +357,20 @@ export class AppState {
|
|||||||
|
|
||||||
const selectedTag = this.tags.selected;
|
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) {
|
for (const note of changedOrInserted) {
|
||||||
const noteController = this.noteControllerForNote(note.uuid);
|
const noteController = this.noteControllerForNote(note.uuid);
|
||||||
if (!noteController) {
|
if (!noteController) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const isBrowswingTrashedNotes =
|
|
||||||
selectedTag instanceof SmartView &&
|
|
||||||
selectedTag.uuid === SystemViewId.TrashedNotes;
|
|
||||||
|
|
||||||
const isBrowsingArchivedNotes =
|
|
||||||
selectedTag instanceof SmartView &&
|
|
||||||
selectedTag.uuid === SystemViewId.ArchivedNotes;
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
note.trashed &&
|
note.trashed &&
|
||||||
!isBrowswingTrashedNotes &&
|
!isBrowswingTrashedNotes &&
|
||||||
|
|||||||
Reference in New Issue
Block a user