feat: daily notes (dev only) (#1894)
This commit is contained in:
@@ -28,6 +28,10 @@ export class SNTag extends DecryptedItem<TagContent> implements TagContentSpecia
|
||||
this.preferences = this.payload.content.preferences
|
||||
}
|
||||
|
||||
get isDailyEntry(): boolean {
|
||||
return this.preferences?.entryMode === 'daily'
|
||||
}
|
||||
|
||||
get noteReferences(): ContentReference[] {
|
||||
const references = this.payload.references
|
||||
return references.filter((ref) => ref.content_type === ContentType.Note)
|
||||
|
||||
@@ -16,4 +16,5 @@ export interface TagPreferences {
|
||||
newNoteTitleFormat?: NewNoteTitleFormat
|
||||
customNoteTitleFormat?: string
|
||||
editorIdentifier?: FeatureIdentifier | string
|
||||
entryMode?: 'normal' | 'daily'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user