Changing the Delete button to Close in PDFViewer (#1146)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2022-03-16 12:03:22 +03:00 committed by GitHub
parent 4ac8a4d80e
commit 888113f335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
"Ok": "Ok", "Ok": "Ok",
"Save": "Save", "Save": "Save",
"Download": "Download", "Download": "Download",
"Delete": "Delete", "Close": "Close",
"NotSelected": "Not selected", "NotSelected": "Not selected",
"Deselect": "Deselect", "Deselect": "Deselect",
"AddSocialLinks": "Add social links" "AddSocialLinks": "Add social links"

View File

@ -5,7 +5,7 @@
"Ok": "Ок", "Ok": "Ок",
"Save": "Сохранить", "Save": "Сохранить",
"Download": "Загрузить", "Download": "Загрузить",
"Delete": "Удалить", "Close": "Закрыть",
"NotSelected": "Не выделено", "NotSelected": "Не выделено",
"Deselect": "Снять выделение", "Deselect": "Снять выделение",
"AddSocialLinks": "Добавить контактную информацию" "AddSocialLinks": "Добавить контактную информацию"

View File

@ -52,7 +52,7 @@
<div class="pdfviewer-footer"> <div class="pdfviewer-footer">
<div class="flex-row-reverse"> <div class="flex-row-reverse">
<a class="no-line ml-4" href={getFileUrl(file)} download={name}><Button label={presentation.string.Download} size={'small'} primary /></a> <a class="no-line ml-4" href={getFileUrl(file)} download={name}><Button label={presentation.string.Download} size={'small'} primary /></a>
<Button label={presentation.string.Delete} size={'small'} /> <Button label={presentation.string.Close} size={'small'} on:click={() => { dispatch('close') }} />
</div> </div>
{#if contentType && contentType.startsWith('image/') } {#if contentType && contentType.startsWith('image/') }
<div class="img-nav"> <div class="img-nav">

View File

@ -34,7 +34,7 @@ export default plugin(presentationId, {
Ok: '' as IntlString, Ok: '' as IntlString,
Save: '' as IntlString, Save: '' as IntlString,
Download: '' as IntlString, Download: '' as IntlString,
Delete: '' as IntlString, Close: '' as IntlString,
NotSelected: '' as IntlString, NotSelected: '' as IntlString,
Deselect: '' as IntlString, Deselect: '' as IntlString,
AddSocialLinks: '' as IntlString AddSocialLinks: '' as IntlString