chore: vaults-related fixes
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { KeySystemRootKeyContentSpecialized } from '../../../Syncable/KeySystemRootKey/KeySystemRootKeyContent'
|
import { KeySystemRootKeyContentSpecialized } from '../../../Syncable/KeySystemRootKey/KeySystemRootKeyContent'
|
||||||
import { ContactPublicKeySetJsonInterface } from '../../../Syncable/TrustedContact/PublicKeySet/ContactPublicKeySetJsonInterface'
|
import { ContactPublicKeySetJsonInterface } from '../../../Syncable/TrustedContact/PublicKeySet/ContactPublicKeySetJsonInterface'
|
||||||
|
import { EmojiString, IconType } from '../../../Utilities/Icon/IconType'
|
||||||
import { AsymmetricMessageDataCommon } from '../AsymmetricMessageDataCommon'
|
import { AsymmetricMessageDataCommon } from '../AsymmetricMessageDataCommon'
|
||||||
import { AsymmetricMessagePayloadType } from '../AsymmetricMessagePayloadType'
|
import { AsymmetricMessagePayloadType } from '../AsymmetricMessagePayloadType'
|
||||||
|
|
||||||
@@ -17,6 +18,7 @@ export type AsymmetricMessageSharedVaultInvite = {
|
|||||||
metadata: {
|
metadata: {
|
||||||
name: string
|
name: string
|
||||||
description?: string
|
description?: string
|
||||||
|
iconString: IconType | EmojiString
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export class ProcessAcceptedVaultInvite {
|
|||||||
keyStorageMode: KeySystemRootKeyStorageMode.Synced,
|
keyStorageMode: KeySystemRootKeyStorageMode.Synced,
|
||||||
name: metadata.name,
|
name: metadata.name,
|
||||||
description: metadata.description,
|
description: metadata.description,
|
||||||
|
iconString: metadata.iconString,
|
||||||
sharing: {
|
sharing: {
|
||||||
sharedVaultUuid: sharedVaultUuid,
|
sharedVaultUuid: sharedVaultUuid,
|
||||||
ownerUserUuid: ownerUuid,
|
ownerUserUuid: ownerUuid,
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import { GetVaultItems } from './../../Vault/UseCase/GetVaultItems'
|
import { GetVaultItems } from './../../Vault/UseCase/GetVaultItems'
|
||||||
import {
|
import {
|
||||||
|
EmojiString,
|
||||||
|
IconType,
|
||||||
KeySystemRootKeyStorageMode,
|
KeySystemRootKeyStorageMode,
|
||||||
SharedVaultListingInterface,
|
SharedVaultListingInterface,
|
||||||
VaultListingInterface,
|
VaultListingInterface,
|
||||||
@@ -23,12 +25,14 @@ export class CreateSharedVault {
|
|||||||
async execute(dto: {
|
async execute(dto: {
|
||||||
vaultName: string
|
vaultName: string
|
||||||
vaultDescription?: string
|
vaultDescription?: string
|
||||||
|
vaultIcon: IconType | EmojiString
|
||||||
userInputtedPassword: string | undefined
|
userInputtedPassword: string | undefined
|
||||||
storagePreference: KeySystemRootKeyStorageMode
|
storagePreference: KeySystemRootKeyStorageMode
|
||||||
}): Promise<SharedVaultListingInterface | ClientDisplayableError> {
|
}): Promise<SharedVaultListingInterface | ClientDisplayableError> {
|
||||||
const privateVault = await this._createVault.execute({
|
const privateVault = await this._createVault.execute({
|
||||||
vaultName: dto.vaultName,
|
vaultName: dto.vaultName,
|
||||||
vaultDescription: dto.vaultDescription,
|
vaultDescription: dto.vaultDescription,
|
||||||
|
vaultIcon: dto.vaultIcon,
|
||||||
userInputtedPassword: dto.userInputtedPassword,
|
userInputtedPassword: dto.userInputtedPassword,
|
||||||
storagePreference: dto.storagePreference,
|
storagePreference: dto.storagePreference,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ const EditContactModal: FunctionComponent<Props> = ({ onCloseDialog, fromInvite,
|
|||||||
<div className="flex w-full flex-col">
|
<div className="flex w-full flex-col">
|
||||||
<div className="mb-3">
|
<div className="mb-3">
|
||||||
<DecoratedInput
|
<DecoratedInput
|
||||||
className={{ container: 'mt-4' }}
|
|
||||||
id="invite-name-input"
|
id="invite-name-input"
|
||||||
value={name}
|
value={name}
|
||||||
placeholder="Contact Name"
|
placeholder="Contact Name"
|
||||||
@@ -93,15 +92,17 @@ const EditContactModal: FunctionComponent<Props> = ({ onCloseDialog, fromInvite,
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<DecoratedInput
|
{!editingContact?.isMe && (
|
||||||
className={{ container: 'mt-4' }}
|
<DecoratedInput
|
||||||
id="invite-email-input"
|
className={{ container: 'mt-4' }}
|
||||||
value={collaborationID}
|
id="invite-email-input"
|
||||||
placeholder="Contact CollaborationID"
|
value={collaborationID}
|
||||||
onChange={(value) => {
|
placeholder="Contact CollaborationID"
|
||||||
setCollaborationID(value)
|
onChange={(value) => {
|
||||||
}}
|
setCollaborationID(value)
|
||||||
/>
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
{!editContactUuid && (
|
{!editContactUuid && (
|
||||||
<p className="mt-4">
|
<p className="mt-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user