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