feat: creating chats for cards and clients, sending and deleting text messages
This commit is contained in:
		@@ -128,16 +128,18 @@ const ClientTab = () => {
 | 
			
		||||
                        value={client}
 | 
			
		||||
                        onChange={setClient}
 | 
			
		||||
                        withLabel
 | 
			
		||||
                        disabled={!isEqual(initialValues, form.values)}
 | 
			
		||||
                        disabled={!isEqual(initialValues, form.values) || !!card?.chat}
 | 
			
		||||
                    />
 | 
			
		||||
                    <Group>
 | 
			
		||||
                        <InlineButton
 | 
			
		||||
                            onClick={handleSelectClient}
 | 
			
		||||
                            disabled={!isEditorDisabled()}
 | 
			
		||||
                        >
 | 
			
		||||
                            Сохранить
 | 
			
		||||
                        </InlineButton>
 | 
			
		||||
                    </Group>
 | 
			
		||||
                    {!card?.chat && (
 | 
			
		||||
                        <Group>
 | 
			
		||||
                            <InlineButton
 | 
			
		||||
                                onClick={handleSelectClient}
 | 
			
		||||
                                disabled={!isEditorDisabled()}
 | 
			
		||||
                            >
 | 
			
		||||
                                Сохранить
 | 
			
		||||
                            </InlineButton>
 | 
			
		||||
                        </Group>
 | 
			
		||||
                    )}
 | 
			
		||||
                </Stack>
 | 
			
		||||
            </Fieldset>
 | 
			
		||||
            {clientDataEditor}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user