From 7a6a2d2dd361580da199c6e8be5349c42ff7335d Mon Sep 17 00:00:00 2001 From: Tamara Steinwender <tamara.steinwender@tugraz.at> Date: Thu, 29 Apr 2021 11:56:24 +0200 Subject: [PATCH] Change clipboard button --- packages/file-handling/src/dbp-file-handling-clipboard.js | 6 ++++-- packages/file-handling/src/i18n/de/translation.json | 3 ++- packages/file-handling/src/i18n/en/translation.json | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/file-handling/src/dbp-file-handling-clipboard.js b/packages/file-handling/src/dbp-file-handling-clipboard.js index 7afd6339..950ffc2f 100644 --- a/packages/file-handling/src/dbp-file-handling-clipboard.js +++ b/packages/file-handling/src/dbp-file-handling-clipboard.js @@ -458,6 +458,7 @@ export class FileHandlingClipboard extends ScopedElementsMixin(DBPLitElement) { } .clipboard-data p{ + margin-top: 1rem; margin-bottom: 1rem; } @@ -549,9 +550,10 @@ export class FileHandlingClipboard extends ScopedElementsMixin(DBPLitElement) { <div class="clipboard-data ${classMap({"hidden": this.clipboardFiles.files.length === 0})}"> <h4>${i18n.t('file-sink.clipboard-files')}</h4> - <div class="${classMap({"hidden": this.clipboardFiles.files.length === 0})}"> + <div> + <p>${i18n.t('clipboard.save-from-clipboard')}</p> <button id="clipboard-download-button" - class="button is-right clipboard-btn" + class="button is-right" @click="${this.openClipboardFileSink}" >${i18n.t('clipboard.save-from-clipboard-btn')}</button> </div> diff --git a/packages/file-handling/src/i18n/de/translation.json b/packages/file-handling/src/i18n/de/translation.json index ea46dd9d..76d8a3a5 100644 --- a/packages/file-handling/src/i18n/de/translation.json +++ b/packages/file-handling/src/i18n/de/translation.json @@ -103,6 +103,7 @@ "file-warning-body_plural": "Es befinden sich noch {{count}} Dateien in der Zwischenablage. Die Zwischenablage wird beim Verlassen der Seite automatisch verworfen.", "save-files-from-clipboard": "Eine Datei aus der Zwischenablage speichern", "save-files-from-clipboard_plurafile-sinkl": "{{count}} Dateien aus der Zwischenablage speichern", - "save-from-clipboard-btn": "Aktuellen Inhalt aus der Zwischenablage speichern" + "save-from-clipboard": "Aktuellen Inhalt aus der Zwischenablage speichern:", + "save-from-clipboard-btn": "Zwischenablage speichern" } } diff --git a/packages/file-handling/src/i18n/en/translation.json b/packages/file-handling/src/i18n/en/translation.json index 1e74f3b9..fe11c38c 100644 --- a/packages/file-handling/src/i18n/en/translation.json +++ b/packages/file-handling/src/i18n/en/translation.json @@ -103,6 +103,7 @@ "file-warning-body_plural": "There are still {{count}} files on the clipboard. The clipboard is automatically discarded when you exit the page.", "save-files-from-clipboard": "Save a file from the clipboard", "save-files-from-clipboard_plural": "Save {{count}} files from the clipboard", - "save-from-clipboard-btn": "Save the current content from the clipboard" + "save-from-clipboard": "Save the current content from the clipboard:", + "save-from-clipboard-btn": "Save the clipboard" } } -- GitLab