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")}
|
||||
extra={
|
||||
<Space>
|
||||
<Typography.Text type="secondary">{t("notifications.labels.auto-add")}</Typography.Text>
|
||||
<Switch
|
||||
checked={autoAddEnabled}
|
||||
onChange={handleAutoAddToggle}
|
||||
loading={savingAutoAdd}
|
||||
checkedChildren={t("notifications.labels.auto-add-on")}
|
||||
unCheckedChildren={t("notifications.labels.auto-add-off")}
|
||||
// checkedChildren={t("notifications.labels.auto-add-on")}
|
||||
// unCheckedChildren={t("notifications.labels.auto-add-off")}
|
||||
/>
|
||||
<Button type="default" onClick={handleReset} disabled={!isDirty && !isAutoAddDirty}>
|
||||
{t("general.actions.clear")}
|
||||
@@ -200,7 +201,6 @@ const NotificationSettingsForm = ({ currentUser }) => {
|
||||
>
|
||||
<Table dataSource={dataSource} columns={columns} pagination={false} bordered rowKey="key" />
|
||||
<Divider />
|
||||
<Typography.Paragraph type="secondary">{t("notifications.labels.auto-add-description")}</Typography.Paragraph>
|
||||
</Card>
|
||||
</Form>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user