From 0e0c67eac350efc35545281f66d61d31160952c4 Mon Sep 17 00:00:00 2001
From: Tamara Steinwender <tamara.steinwender@tugraz.at>
Date: Mon, 21 Sep 2020 16:13:53 +0200
Subject: [PATCH] Add info for tugraz cloud users

---
 packages/file-handling/src/dbp-nextcloud-file-picker.js | 7 ++++---
 packages/file-handling/src/i18n/de/translation.json     | 1 +
 packages/file-handling/src/i18n/en/translation.json     | 1 +
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/packages/file-handling/src/dbp-nextcloud-file-picker.js b/packages/file-handling/src/dbp-nextcloud-file-picker.js
index 8e17f807..1c3871e9 100644
--- a/packages/file-handling/src/dbp-nextcloud-file-picker.js
+++ b/packages/file-handling/src/dbp-nextcloud-file-picker.js
@@ -1437,7 +1437,8 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
                         </h2>
                         <p class="m-inherit">
                             ${i18n.t('nextcloud-file-picker.init-text-1', {name: this.nextcloudName})}   <br>           
-                            ${i18n.t('nextcloud-file-picker.init-text-2')}              
+                            ${i18n.t('nextcloud-file-picker.init-text-2')}     <br><br>
+                                   
                         </p>
                     </div>
                     <div class="block ${classMap({hidden: this.isPickerActive})}">
@@ -1446,8 +1447,8 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
                                 @click="${async () => { this.openFilePicker(); } }">${i18n.t('nextcloud-file-picker.connect-nextcloud', {name: this.nextcloudName})}</button>
                     </div>
                     <div class="block text-center m-inherit ${classMap({hidden: this.isPickerActive})}">
-                    <p class="m-inherit">
-                         ${i18n.t('nextcloud-file-picker.auth-info')}
+                    <p class="m-inherit"><br>
+                         ${i18n.t('nextcloud-file-picker.auth-info')}<br>${i18n.t('nextcloud-file-picker.auth-info-2')}  
                     </p>
                 </div>
                </div>
diff --git a/packages/file-handling/src/i18n/de/translation.json b/packages/file-handling/src/i18n/de/translation.json
index 8ba94644..1dbb5d1a 100644
--- a/packages/file-handling/src/i18n/de/translation.json
+++ b/packages/file-handling/src/i18n/de/translation.json
@@ -44,6 +44,7 @@
     "init-text-1": "Wählen Sie Ihre Dateien von {{name}}.",
     "init-text-2": "Sie müssen sich zuerst authentifizieren.",
     "auth-info": "Eine neue Seite wird geöffnet, um Ihr Konto zu verbinden.",
+    "auth-info-2": "Für diese Funktion ist ein TU Graz Bediensteten Account nötig!",
     "connect-nextcloud": "{{name}} verbinden",
     "open-in-nextcloud": "In {{name}} öffnen",
     "no-data": "In diesem Ordner befinden sich keine Dateien.",
diff --git a/packages/file-handling/src/i18n/en/translation.json b/packages/file-handling/src/i18n/en/translation.json
index 794ab708..4cfb3c0f 100644
--- a/packages/file-handling/src/i18n/en/translation.json
+++ b/packages/file-handling/src/i18n/en/translation.json
@@ -44,6 +44,7 @@
     "init-text-1": "Chose your files from {{name}}.",
     "init-text-2": "You need to authenticate first.",
     "auth-info": "A new page will open to connect your account.",
+    "auth-info-2": "A TU Graz employee account is required for this function!",
     "connect-nextcloud": "Connect {{name}}",
     "open-in-nextcloud": "Open in {{name}}",
     "no-data": "No data avaible in this folder.",
-- 
GitLab