diff --git a/CHANGELOG.md b/CHANGELOG.md index a1a310e2..899b8f40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Added + +Adds a Tooltip when the user don't have permission to access the bulk import feature. + ## [1.30.1] - 2024-01-26 ### Fixed diff --git a/messages/ar.json b/messages/ar.json index 554a94ee..5af21657 100644 --- a/messages/ar.json +++ b/messages/ar.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "هل تحتاج للمساعدة؟", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "تحقق من أفضل ممارسات دليل الاستيراد لدينا", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "تحميل XLSX المصحَّح", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "حدث خطأ ما أثناء الاستيراد. الرجاء المحاولة مرة أخرى.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "اسم المنظمة", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "المستخدم المُشرف", diff --git a/messages/bg.json b/messages/bg.json index 00e34769..53f6699e 100644 --- a/messages/bg.json +++ b/messages/bg.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Нуждаете се от помощ?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Разгледайте нашето Ръководство за най-добри практики при импортиране", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Изтегляне на прегледани XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Нещо се обърка при импортирането. Моля, опитайте отново.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Име на организацията", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Админ потребител", diff --git a/messages/ca.json b/messages/ca.json index 968a2b24..1bcd8be1 100644 --- a/messages/ca.json +++ b/messages/ca.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Necessiteu ajuda?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Consulteu la nostra Guia d'importació de pràctiques recomanades", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Baixa el fitxer XLSX revisat", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Alguna cosa ha anat malament amb la importació. Torneu-ho a provar.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Nom de l'organització", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Usuari administrador", diff --git a/messages/context.json b/messages/context.json index 6f3f4f3e..423a6d4c 100644 --- a/messages/context.json +++ b/messages/context.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": " Need guidance?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Check our Best Practices Import Guide", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Download Reviewed .XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Something went wrong with the import. Please try again.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "admin/b2b-organizations.organization-requests-admin.table.column-name.title", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "admin/b2b-organizations.organization-requests-admin.table.column-admin.title", diff --git a/messages/cs.json b/messages/cs.json index 944d935f..4bafd0f4 100644 --- a/messages/cs.json +++ b/messages/cs.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Potřebujete pomoc?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Nahlédněte do našeho průvodce osvědčenými postupy při importu", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Stáhnout zkontrolovaný XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Při importu se něco pokazilo. Zkuste to prosím znovu.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Název organizace", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Uživatel správce", diff --git a/messages/da.json b/messages/da.json index ef65b4db..d9c287d0 100644 --- a/messages/da.json +++ b/messages/da.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Brug for hjælp?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Se vores importvejledning til bedste praksis", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Download gennemgået XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Der gik noget galt med importen. Prøv igen.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Organisationens navn", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Admin-bruger", diff --git a/messages/de.json b/messages/de.json index d6f2318b..72b22b62 100644 --- a/messages/de.json +++ b/messages/de.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Benötigen Sie Hilfe?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Lesen Sie unseren Best Practices Import Guide", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Überprüftes XLSX herunterladen", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Beim Import ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Name der Organisation", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Admin-Benutzer", diff --git a/messages/el.json b/messages/el.json index ddcbac6a..e3fbfe4d 100644 --- a/messages/el.json +++ b/messages/el.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Χρειάζεστε βοήθεια;", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Ελέγξτε τον Οδηγό εισαγωγής βέλτιστων πρακτικών", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Λήψη αναθεωρημένου XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Κάτι πήγε στραβά με την εισαγωγή. Δοκιμάστε ξανά.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Όνομα οργανισμού", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Χρήστης διαχείρισης", diff --git a/messages/en.json b/messages/en.json index 7c08c889..04ed353a 100644 --- a/messages/en.json +++ b/messages/en.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Need help?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Check our Best Practices Import Guide", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Download Reviewed XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Something went wrong with the import. Please try again.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Organization Name", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Admin User", diff --git a/messages/es.json b/messages/es.json index 751a0da1..a489044a 100644 --- a/messages/es.json +++ b/messages/es.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "¿Necesitas ayuda?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Consulta nuestra Guía de mejores prácticas de importación", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Descargar XLSX revisado", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Se produjo un error al importar. Por favor, vuelve a intentarlo.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Nombre de la organización", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Usuario admin", diff --git a/messages/fi.json b/messages/fi.json index c945dc8f..172dd967 100644 --- a/messages/fi.json +++ b/messages/fi.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Tarvitsetko apua?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Tutustu parhaiden käytäntöjen tuontioppaaseen", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Lataa tarkistettu XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Jokin meni pieleen tuonnissa. Yritä uudelleen.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Organisaation nimi", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Järjestelmänvalvojakäyttäjä", diff --git a/messages/fr.json b/messages/fr.json index e48ace43..3db7fe7f 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Besoin d’aide ?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Consultez notre guide d'importation des meilleures pratiques", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Téléchargez le XLSX révisé", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Une erreur est survenue avec l'importation. Veuillez réessayer.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Nom de l’organisation", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Administrateur", diff --git a/messages/id.json b/messages/id.json index 49568c2e..1234ce78 100644 --- a/messages/id.json +++ b/messages/id.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Butuh bantuan?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Lihat Panduan Praktik Impor Terbaik kami", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Unduh Ulasan XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Ada yang tidak beres pada impor. Silakan coba lagi.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Nama Organisasi", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Pengguna Admin", diff --git a/messages/it.json b/messages/it.json index 7f16ef97..8f49175b 100644 --- a/messages/it.json +++ b/messages/it.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Hai bisogno di una mano?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Consulta la nostra guida sulle procedure di importazione consigliate", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Scarica il file XLSX revisionato", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Si è verificato un errore durante l'importazione. Riprova.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Nome organizzazione", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Utente admin", diff --git a/messages/ja.json b/messages/ja.json index c6ad4e57..e509ebb8 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "ヘルプが必要ですか?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "ベストプラクティスインポートガイドをご覧ください", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "レビュー済みの XLSX をダウンロードする", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "インポート時にエラーが発生しました。もう一度やり直してください。", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "組織名", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "管理者ユーザー", diff --git a/messages/ko.json b/messages/ko.json index 2c9b9ca1..e7046305 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "도움이 필요하신가요?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "모범 사례 가져오기 가이드 확인", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "검토된 XLSX 다운로드", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "가져오기에 문제가 발생했습니다. 다시 시도해 주세요.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "조직명", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "관리 사용자", diff --git a/messages/nl.json b/messages/nl.json index ecbddcf3..eb611930 100644 --- a/messages/nl.json +++ b/messages/nl.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Hulp nodig?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Bekijk onze importgids voor beste praktijken", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Herzien XLSX downloaden", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Er is iets misgegaan bij het importeren. Probeer het opnieuw.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Naam organisatie", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Admin gebruiker", diff --git a/messages/no.json b/messages/no.json index e157079c..18900ba2 100644 --- a/messages/no.json +++ b/messages/no.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Trenger du hjelp?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Ta en titt på veiledningen vår for de beste importløsningene", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Last ned revidert XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Noe gikk galt med importen, prøv igjen.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Organisasjonsnavn", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Administratorbruker", diff --git a/messages/pl.json b/messages/pl.json index 832a105e..a4a4159e 100644 --- a/messages/pl.json +++ b/messages/pl.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Potrzebujesz pomocy?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Sprawdź nasz Przewodnik po najlepszych praktykach dotyczących importu", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Pobierz sprawdzony plik XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Coś poszło nie tak z importem. Spróbuj ponownie.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Nazwa organizacji", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Użytkownik admin", diff --git a/messages/pt.json b/messages/pt.json index 4c347feb..c211d636 100644 --- a/messages/pt.json +++ b/messages/pt.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": " Precisa de ajuda?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Consulte nosso Guia de melhores práticas de importação", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Baixar XLSX revisado", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Algo deu errado durante a importação. Tente novamente.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Nome da organização", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Usuário Admin", diff --git a/messages/ro.json b/messages/ro.json index bf924908..158afb34 100644 --- a/messages/ro.json +++ b/messages/ro.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Ai nevoie de ajutor?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Consultă Ghidul nostru de bune practici privind importul", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Descarcă fișierul XLSX revizuit", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Ceva nu a mers bine la import. Te rugăm să încerci din nou.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Numele organizației", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Utilizator Administrator", diff --git a/messages/ru.json b/messages/ru.json index efa562d8..94e56af7 100644 --- a/messages/ru.json +++ b/messages/ru.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Нужна помощь?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Ознакомьтесь с нашим руководством по импортированию", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Скачать проверенный XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Сбой импортирования. Повторите попытку.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Название организации", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Администратор", diff --git a/messages/sk.json b/messages/sk.json index af05a2dd..0b0face4 100644 --- a/messages/sk.json +++ b/messages/sk.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Potrebujete pomoc?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Pozrite si nášho sprievodcu osvedčenými postupmi importovania", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Stiahnuť skontrolovaný súbor XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Pri importe sa vyskytla chyba. Skúste to znova.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Názov organizácie", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Správca používateľa", diff --git a/messages/sl.json b/messages/sl.json index 0f44027a..5f394d32 100644 --- a/messages/sl.json +++ b/messages/sl.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Potrebujete pomoč?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Oglejte si naš Vodnik po najboljših praksah za uvoz", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Prenesite pregledano XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Pri uvozu je šlo nekaj narobe. Poskusite znova.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Ime organizacije", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Skrbniški uporabnik", diff --git a/messages/sv.json b/messages/sv.json index 677e7aab..d9852488 100644 --- a/messages/sv.json +++ b/messages/sv.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Behöver du hjälp?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Kolla in vår Importguide för bästa praxis", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Ladda ner granskad XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Något gick fel med importen. Försök igen, tack.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Företagsnamn", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Administratör", diff --git a/messages/th.json b/messages/th.json index 800aeb55..4aac7a96 100644 --- a/messages/th.json +++ b/messages/th.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "ต้องการความช่วยเหลือหรือไม่", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "โปรดดูคู่มือการนำเข้าที่ดีที่สุดของเรา", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "ดาวน์โหลด XLSX ที่ตรวจสอบแล้ว", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "มีบางอย่างผิดปกติกับการนำเข้า โปรดลองอีกครั้ง", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "ชื่อองค์กร", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "ผู้ใช้ Admin", @@ -182,6 +183,7 @@ "admin/b2b-organizations.organization-settings-clearCart": "เคลียร์ล้อเข็นเมื่อเปลี่ยนบริษัทหรือเข้าสู่ระบบ", "admin/b2b-organizations.organizations-admin.table.column-name.title": "ชื่อ", "admin/b2b-organizations.organizations-admin.table.column-status.title": "สถานะ", + "admin/b2b-organizations.organizations-admin.table.view.label": "ดู", "admin/b2b-organizations.organizations-admin.add-single": "เพิ่มทีละรายการ", "admin/b2b-organizations.organizations-admin.add-bulk": "นำเข้าแบบกลุ่ม", "admin/b2b-organizations.organizations-admin.title": "องค์กร", diff --git a/messages/uk.json b/messages/uk.json index bb8bec4e..c3a996d2 100644 --- a/messages/uk.json +++ b/messages/uk.json @@ -152,6 +152,7 @@ "admin/b2b-organizations.bulk-import.import.reportInformationStep4NeedGuidance": "Потрібна допомога?", "admin/b2b-organizations.bulk-import.import.reportInformationStep4ImportGuide": "Ознайомтеся з нашим посібником з імпортування", "admin/b2b-organizations.bulk-import.import.downloadReviewedLink": "Завантажити перевірений XLSX", + "admin/b2b-organizations.bulk-import.import.permissionAlertTooltip": "You don't have permission to access the Bulk Import", "admin/b2b-organizations.bulk-import.import.errorMessage": "Збій імпортування. Повторіть спробу.", "admin/b2b-organizations.organization-requests-admin.table.column-name.title": "Назва організації", "admin/b2b-organizations.organization-requests-admin.table.column-admin.title": "Адміністратор", diff --git a/react/bulkImport/messages.ts b/react/bulkImport/messages.ts index 9a6ce44e..e384c277 100644 --- a/react/bulkImport/messages.ts +++ b/react/bulkImport/messages.ts @@ -28,6 +28,7 @@ export type BulkImportMessageKey = | 'reportInformationStep4' | 'downloadReviewedLink' | 'errorMessage' + | 'permissionAlertTooltip' export const bulkUploadMessages: Record< BulkImportMessageKey, @@ -211,6 +212,9 @@ export const bulkUploadMessages: Record< errorMessage: { id: 'admin/b2b-organizations.bulk-import.import.errorMessage', }, + permissionAlertTooltip: { + id: 'admin/b2b-organizations.bulk-import.import.permissionAlertTooltip', + }, }) export const hasTranslation = (key: string): key is BulkImportMessageKey => { diff --git a/react/components/CreateOrganizationButton/CreateOrganizationButton.tsx b/react/components/CreateOrganizationButton/CreateOrganizationButton.tsx index ec054427..62680e57 100644 --- a/react/components/CreateOrganizationButton/CreateOrganizationButton.tsx +++ b/react/components/CreateOrganizationButton/CreateOrganizationButton.tsx @@ -26,6 +26,7 @@ import type { import useStartBulkImport from '../../hooks/useStartBulkImport' import ReportDownloadLink from '../ReportDownloadLink/ReportDownloadLink' import { ValidationScreen } from '../UploadingScreen' +import { ImportInBulkTooltip } from '../ImportInBulkTooltip' const CreateOrganizationButton = () => { const { formatMessage } = useTranslate() @@ -34,6 +35,7 @@ const CreateOrganizationButton = () => { const [uploadModalOpen, setUploadModalOpen] = useState(false) const { mutate } = useSWRConfig() const { startBulkImport } = useStartBulkImport() + const { data } = useBulkImportsQuery() const handleUploadFinish = async (result: UploadFileData) => { @@ -57,13 +59,14 @@ const CreateOrganizationButton = () => { icon={} onClick={() => setOpen(true)} /> - {!!data && ( + } onClick={() => setUploadModalOpen(true)} + disabled={!data} /> - )} + { + const { translate: t } = useTranslate() + + return visible ? ( + +
{children}
+
+ ) : ( + <>{children} + ) +} + +export default ImportInBulkTooltip diff --git a/react/components/ImportInBulkTooltip/index.ts b/react/components/ImportInBulkTooltip/index.ts new file mode 100644 index 00000000..f180afdd --- /dev/null +++ b/react/components/ImportInBulkTooltip/index.ts @@ -0,0 +1,2 @@ +export { default as ImportInBulkTooltip } from './ImportInBulkTooltip' +export type { ImportInBulkTooltipProps } from './ImportInBulkTooltip'