diff --git a/CHANGELOG.md b/CHANGELOG.md index ab7039a..6690fff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ ## Release Candidate +### Features + +- ASAB WebUI submodule version bump [[7802fff](https://github.com/TeskaLabs/asab-webui/commit/7802fff00a46d7c13fecae8247e123b1bfef8423)] commit (INDIGO Sprint 230721, [!57](https://github.com/TeskaLabs/seacat-admin-webui/pull/57)) + +### Refactoring + +- Change "?" in HelpButton to word "Help" (INDIGO Sprint 230721, [!439](https://github.com/TeskaLabs/asab-webui/pull/439)) + +- Add a condition that will allow users with the right resource to see hidden tree-menu-items, add docs for TreeMenu (INDIGO Sprint 230721, [!437](https://github.com/TeskaLabs/asab-webui/pull/437)) + +- Add titles for buttons and locales for it (INDIGO Sprint 230721, [!57](https://github.com/TeskaLabs/seacat-admin-webui/pull/57)) + ## v23.30-alpha ### Features diff --git a/asab-webui b/asab-webui index 31b7bb5..1091d60 160000 --- a/asab-webui +++ b/asab-webui @@ -1 +1 @@ -Subproject commit 31b7bb5519f7b8fa6f71853ba83f71e9dabc0ef4 +Subproject commit 1091d6032e0e3298e92ea4dca6c56dc46030a493 diff --git a/public/locales/cs/translation.json b/public/locales/cs/translation.json index ae1fc10..f0ee227 100644 --- a/public/locales/cs/translation.json +++ b/public/locales/cs/translation.json @@ -411,7 +411,8 @@ "More": "Více...", "Search": "Hledat", "Resource": "Zdroj", - "already selected": "byl již zvolen" + "already selected": "byl již zvolen", + "Remove resource": "Odebrat zdroj" }, "ResourcesCreateContainer": { "Resource created": "Zdroj byl úspěšně vytvořen", diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 4c86cf7..35169fc 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -413,7 +413,8 @@ "More": "More...", "Search": "Search", "Resource": "Resource", - "already selected": "already selected" + "already selected": "already selected", + "Remove resource": "Remove resource" }, "ResourcesCreateContainer": { "Resource created": "Resource has been created", diff --git a/src/modules/auth/clients/FormFields.js b/src/modules/auth/clients/FormFields.js index d212c9b..9916d5e 100644 --- a/src/modules/auth/clients/FormFields.js +++ b/src/modules/auth/clients/FormFields.js @@ -151,6 +151,7 @@ export function URiInput ({name, errors, append, remove, fields, labelName, reg, outline color="primary" size="sm" + title={t("ClientFormField|Add new input")} onClick={() => append({ value: ""})} > @@ -194,7 +195,7 @@ function InputTemplate({index, errors, remove, register, name, disabled}){ invalid={errors[name]?.[index]?.value && true} /> - diff --git a/src/modules/auth/resources/ResourcesDetailContainer.js b/src/modules/auth/resources/ResourcesDetailContainer.js index 72b2a75..63dc9f6 100644 --- a/src/modules/auth/resources/ResourcesDetailContainer.js +++ b/src/modules/auth/resources/ResourcesDetailContainer.js @@ -178,6 +178,7 @@ const ResourceDetailContainer = (props) => { color="danger" resources={resources} resource={resourceEdit} + title={t("ResourcesDetailContainer|Delete resource")} onClick={() => terminateResourceForm(resource._id)} > {t("ResourcesDetailContainer|Delete resource")} diff --git a/src/modules/auth/roles/RolesResourcesCard.js b/src/modules/auth/roles/RolesResourcesCard.js index 99341cc..3502316 100644 --- a/src/modules/auth/roles/RolesResourcesCard.js +++ b/src/modules/auth/roles/RolesResourcesCard.js @@ -118,6 +118,7 @@ const RolesResourcesCard = (props) => { color="danger" outline className="mr-2" + title={t('RolesResourcesCard|Remove resource')} onClick={() => unassignResource(resource)}> diff --git a/src/modules/auth/tenant/TenantCreateContainer.js b/src/modules/auth/tenant/TenantCreateContainer.js index 4cd2cc4..67d33f7 100644 --- a/src/modules/auth/tenant/TenantCreateContainer.js +++ b/src/modules/auth/tenant/TenantCreateContainer.js @@ -113,7 +113,8 @@ function TenantCreateContainer(props) { color="primary" outline type="button" - onClick={() => proposeName() } + onClick={() => proposeName()} + title={t("TenantCreateContainer|Propose a name")} >{t("TenantCreateContainer|Propose a name")}