mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 19:44:59 +03:00
Bug fix and Improvements (#5113)
Signed-off-by: chBehzad <behzad.chaudury@gmail.com>
This commit is contained in:
parent
a3a77eb6b1
commit
8b9fc860a0
@ -191,7 +191,7 @@
|
||||
{#if showSend}
|
||||
<Button
|
||||
{loading}
|
||||
disabled={(isEmpty && !haveAttachment) || loading}
|
||||
disabled={(isEmpty && !haveAttachment) || (!isEmpty && !content.replace(/<[^>]*>/g, '').trim()) || loading}
|
||||
icon={iconSend ?? Send}
|
||||
iconProps={{ size: buttonSize }}
|
||||
kind={kindSend}
|
||||
|
@ -1824,7 +1824,9 @@
|
||||
flex-wrap: nowrap;
|
||||
min-width: 0;
|
||||
|
||||
.ap-icon {
|
||||
.ap-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--theme-dark-color);
|
||||
height: 100%;
|
||||
aspect-ratio: 1;
|
||||
|
@ -48,7 +48,7 @@
|
||||
loading++
|
||||
try {
|
||||
const uuid = await uploadFile(file)
|
||||
client.addCollection(attachment.class.Photo, space, objectId, _class, 'photos', {
|
||||
client.addCollection(attachment.class.Photo, space, objectId, _class, 'attachments', {
|
||||
name: file.name,
|
||||
file: uuid,
|
||||
type: file.type,
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
async function addCard (event: CustomEvent) {
|
||||
const title = event.detail
|
||||
if (!title) {
|
||||
if (!title || title.trim().length === 0) {
|
||||
return
|
||||
}
|
||||
await onAdd(title, true)
|
||||
|
Loading…
Reference in New Issue
Block a user