chore: show current vault in template note if using exclusive mode

This commit is contained in:
Aman Harwara
2023-09-14 15:25:24 +05:30
parent cac8f4adf5
commit 7b0e4d0edc
3 changed files with 54 additions and 17 deletions

View File

@@ -1,9 +1,11 @@
import { VaultDisplayOptions, VaultListingInterface } from '@standardnotes/models'
import { DecryptedItemInterface, VaultDisplayOptions, VaultListingInterface } from '@standardnotes/models'
import { AbstractUIServiceInterface } from '../Abstract/AbstractUIServiceInterface'
export interface VaultDisplayServiceInterface extends AbstractUIServiceInterface {
exclusivelyShownVault?: VaultListingInterface
getItemVault(item: DecryptedItemInterface): VaultListingInterface | undefined
getOptions(): VaultDisplayOptions
isVaultDisabledOrLocked(vault: VaultListingInterface): boolean