feature/IO-3225-Notifications-1.5: Final Refactoring / Optimization
This commit is contained in:
@@ -182,12 +182,13 @@ const NotificationSettingsForm = ({ currentUser }) => {
|
|||||||
title={t("notifications.labels.notificationscenarios")}
|
title={t("notifications.labels.notificationscenarios")}
|
||||||
extra={
|
extra={
|
||||||
<Space>
|
<Space>
|
||||||
|
<Typography.Text type="secondary">{t("notifications.labels.auto-add")}</Typography.Text>
|
||||||
<Switch
|
<Switch
|
||||||
checked={autoAddEnabled}
|
checked={autoAddEnabled}
|
||||||
onChange={handleAutoAddToggle}
|
onChange={handleAutoAddToggle}
|
||||||
loading={savingAutoAdd}
|
loading={savingAutoAdd}
|
||||||
checkedChildren={t("notifications.labels.auto-add-on")}
|
// checkedChildren={t("notifications.labels.auto-add-on")}
|
||||||
unCheckedChildren={t("notifications.labels.auto-add-off")}
|
// unCheckedChildren={t("notifications.labels.auto-add-off")}
|
||||||
/>
|
/>
|
||||||
<Button type="default" onClick={handleReset} disabled={!isDirty && !isAutoAddDirty}>
|
<Button type="default" onClick={handleReset} disabled={!isDirty && !isAutoAddDirty}>
|
||||||
{t("general.actions.clear")}
|
{t("general.actions.clear")}
|
||||||
@@ -200,7 +201,6 @@ const NotificationSettingsForm = ({ currentUser }) => {
|
|||||||
>
|
>
|
||||||
<Table dataSource={dataSource} columns={columns} pagination={false} bordered rowKey="key" />
|
<Table dataSource={dataSource} columns={columns} pagination={false} bordered rowKey="key" />
|
||||||
<Divider />
|
<Divider />
|
||||||
<Typography.Paragraph type="secondary">{t("notifications.labels.auto-add-description")}</Typography.Paragraph>
|
|
||||||
</Card>
|
</Card>
|
||||||
</Form>
|
</Form>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -652,7 +652,7 @@
|
|||||||
"notifications": {
|
"notifications": {
|
||||||
"description": "Select employees to automatically follow new jobs and receive notifications for job updates.",
|
"description": "Select employees to automatically follow new jobs and receive notifications for job updates.",
|
||||||
"placeholder": "Search for employees",
|
"placeholder": "Search for employees",
|
||||||
"invalid_followers": "Invalid followers. Please select valid employees."
|
"invalid_followers": "Invalid selection. Please select valid employees."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
@@ -735,7 +735,7 @@
|
|||||||
"task-presets": "Task Presets",
|
"task-presets": "Task Presets",
|
||||||
"workingdays": "Working Days",
|
"workingdays": "Working Days",
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"followers": "Notification Followers"
|
"followers": "Notifications"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"operations": {
|
"operations": {
|
||||||
@@ -2449,11 +2449,9 @@
|
|||||||
"fcm": "Push"
|
"fcm": "Push"
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"auto-add-on": "Unfollow",
|
"auto-add": "Automatically watch Jobs I import",
|
||||||
"auto-add-off": "Follow",
|
"auto-add-success": "Auto watcher status successfully changed.",
|
||||||
"auto-add-success": "Follow status successfully changed.",
|
"auto-add-failure": "Something went wrong updating your auto watcher status.",
|
||||||
"auto-add-failure": "Something went wrong updating your Follow status.",
|
|
||||||
"auto-add-description": "When enabled, the Follow setting automatically adds you as a watcher to new jobs, ensuring you receive notifications for job updates.",
|
|
||||||
"add-watchers": "Add Watchers",
|
"add-watchers": "Add Watchers",
|
||||||
"add-watchers-team": "Add Team Members",
|
"add-watchers-team": "Add Team Members",
|
||||||
"employee-search": "Search for an Employee",
|
"employee-search": "Search for an Employee",
|
||||||
|
|||||||
Reference in New Issue
Block a user