Remove delete button from attachmentBlock in the preview row and set correct tooltip title

This commit is contained in:
Hadi Nategh 2022-08-31 15:09:41 +02:00
parent 786fe5ff69
commit bc204e7f1a
2 changed files with 1 additions and 2 deletions

View File

@ -1383,6 +1383,7 @@ class mail_compose
? Vfs\Sharing::LINK : $content['filemode'] ?? ''; ? Vfs\Sharing::LINK : $content['filemode'] ?? '';
$attach['filemode_title'] = lang(Vfs\Sharing::$modes[$attach['filemode_icon']]['label'] ?? ''); $attach['filemode_title'] = lang(Vfs\Sharing::$modes[$attach['filemode_icon']]['label'] ?? '');
} }
$content['attachmentsBlockTitle'] = count($content['attachments']).' '.Lang('Attachments');
} }
else else
{ {

View File

@ -94,7 +94,6 @@
<column disabled="!@showtempname" width="10%"/> <column disabled="!@showtempname" width="10%"/>
<column width="85%"/> <column width="85%"/>
<column width="8%"/> <column width="8%"/>
<column width="" />
</columns> </columns>
<rows> <rows>
<row class="row attachmentRow"> <row class="row attachmentRow">
@ -102,7 +101,6 @@
<description id="attachments[0][tmp_name]"/> <description id="attachments[0][tmp_name]"/>
<description class="useEllipsis et2_link" id="attachments[0][name]" no_lang="1" onclick="app.mail.displayUploadedFile"/> <description class="useEllipsis et2_link" id="attachments[0][name]" no_lang="1" onclick="app.mail.displayUploadedFile"/>
<vfs-size align="right" id="attachments[0][size]" /> <vfs-size align="right" id="attachments[0][size]" />
<button id="delete[@attachments[0][tmp_name]]" value="Delete" image="delete"/>
</row> </row>
</rows> </rows>
</grid> </grid>