Skip to content

Commit

Permalink
translation&tooltip fixes (#1771)
Browse files Browse the repository at this point in the history
  • Loading branch information
fahad-aot authored Nov 23, 2023
1 parent f3d59ce commit 8cbbed3
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 15 deletions.
20 changes: 14 additions & 6 deletions forms-flow-web/src/components/Application/ApplicationTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,14 @@ const ApplicationTable = () => {
{isAscending && sortBy === "id" ? (
<i
onClick={() => updateSort("desc", "id")}
className="fa-sharp fa-solid fa-arrow-down-9-1 cursor-pointer"
className="fa-sharp fa-solid fa-arrow-down-1-9 cursor-pointer"
title={t("Descending")}
/>
) : (
<i
onClick={() => updateSort("asc", "id")}
className="fa-sharp fa-solid fa-arrow-up-1-9 cursor-pointer"
className="fa-sharp fa-solid fa-arrow-down-9-1 cursor-pointer"
title={t("Ascending")}
/>
)}{" "}
</th>
Expand All @@ -202,11 +204,13 @@ const ApplicationTable = () => {
<i
onClick={() => updateSort("desc", "applicationName")}
className="fa-sharp fa-solid fa-arrow-down-a-z cursor-pointer"
title={t("Descending")}
/>
) : (
<i
onClick={() => updateSort("asc", "applicationName")}
className="fa-sharp fa-solid fa-arrow-up-z-a cursor-pointer"
className="fa-sharp fa-solid fa-arrow-down-z-a cursor-pointer"
title={t("Ascending")}
/>
)}
</th>
Expand All @@ -216,11 +220,13 @@ const ApplicationTable = () => {
<i
onClick={() => updateSort("desc", "applicationStatus")}
className="fa-sharp fa-solid fa-arrow-down-a-z ml-2 cursor-pointer"
title={t("Descending")}
/>
) : (
<i
onClick={() => updateSort("asc", "applicationStatus")}
className="fa-sharp fa-solid fa-arrow-up-z-a ml-2 cursor-pointer"
className="fa-sharp fa-solid fa-arrow-down-z-a ml-2 cursor-pointer"
title={t("Ascending")}
/>
)}
</th>
Expand All @@ -229,12 +235,14 @@ const ApplicationTable = () => {
{isAscending && sortBy === "modified" ? (
<i
onClick={() => updateSort("desc", "modified")}
className="fa-sharp fa-solid fa-arrow-down-9-1 ml-2 cursor-pointer"
className="fa-sharp fa-solid fa-arrow-down-1-9 ml-2 cursor-pointer"
title={t("Descending")}
/>
) : (
<i
onClick={() => updateSort("asc", "modified")}
className="fa-sharp fa-solid fa-arrow-up-1-9 ml-2 cursor-pointer"
className="fa-sharp fa-solid fa-arrow-down-9-1 ml-2 cursor-pointer"
title={t("Ascending")}
/>
)}
</th>
Expand Down
18 changes: 12 additions & 6 deletions forms-flow-web/src/components/Draft/DraftTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,14 @@ const DraftTable = () => {
{isAscending && sortBy === "id" ? (
<i
onClick={() => updateSort("desc", "id")}
className="fa-sharp fa-solid fa-arrow-down-9-1 cursor-pointer"
className="fa-sharp fa-solid fa-arrow-down-1-9 cursor-pointer"
title={t("Descending")}
/>
) : (
<i
onClick={() => updateSort("asc", "id")}
className="fa-sharp fa-solid fa-arrow-up-1-9 cursor-pointer"
className="fa-sharp fa-solid fa-arrow-down-9-1 cursor-pointer"
title={t("Ascending")}
/>
)}
</th>
Expand All @@ -149,12 +151,14 @@ const DraftTable = () => {
{isAscending && sortBy === "DraftName" ? (
<i
onClick={() => updateSort("desc", "DraftName")}
className="fa-sharp fa-solid fa-arrow-down-a-z ml-2 cursor-pointer"
className="fa-sharp fa-solid fa-arrow-down-a-z cursor-pointer"
title={t("Descending")}
/>
) : (
<i
onClick={() => updateSort("asc", "DraftName")}
className="fa-sharp fa-solid fa-arrow-up-z-a ml-2 cursor-pointer"
className="fa-sharp fa-solid fa-arrow-down-z-a cursor-pointer"
title={t("Ascending")}
/>
)}
</th>
Expand All @@ -163,12 +167,14 @@ const DraftTable = () => {
{isAscending && sortBy === "modified" ? (
<i
onClick={() => updateSort("desc", "modified")}
className="fa-sharp fa-solid fa-arrow-down-9-1 ml-2 cursor-pointer"
className="fa-sharp fa-solid fa-arrow-down-1-9 ml-2 cursor-pointer"
title={t("Descending")}
/>
) : (
<i
onClick={() => updateSort("asc", "modified")}
className="fa-sharp fa-solid fa-arrow-up-1-9 ml-2 cursor-pointer"
className="fa-sharp fa-solid fa-arrow-down-9-1 ml-2 cursor-pointer"
title={t("Ascending")}
/>
)}
</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const AddGroupModal = React.memo((props) => {
<>
<Modal show={modalOpen} onHide={onClose}>
<Modal.Header>
<Modal.Title>Manage Groups</Modal.Title>
<Modal.Title>{t("Manage Groups")}</Modal.Title>
</Modal.Header>
<LoadingOverlay
active={isGroupLoading}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ const TaskHeader = React.memo(() => {
className="center-position"
sm={4}
onClick={() => setModal(true)}
data-title={t("groups")}
data-title={t("Groups")}
>
<i className="fa fa-group mr-1" />
{taskGroups.length === 0 ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ const TaskHeaderListView = React.memo(({task,taskId,groupView = true}) => {
<div
className="actionable"
onClick={() => setModal(true)}
data-title={t("groups")}
data-title={t("Groups")}
>
<i className="fa fa-group mr-1" />
{taskGroups.length === 0 ? (
Expand Down

0 comments on commit 8cbbed3

Please sign in to comment.