From ba6c8ea46a53389b305498dde74a86298c497714 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 24 May 2022 19:18:14 -0700 Subject: Move actions to the right --- modern/src/settings/CalendarsPage.js | 8 ++++---- modern/src/settings/CommandsPage.js | 12 ++++++------ modern/src/settings/ComputedAttributesPage.js | 14 +++++++------- modern/src/settings/DriversPage.js | 10 +++++----- modern/src/settings/GroupsPage.js | 6 +++--- modern/src/settings/MaintenancesPage.js | 12 ++++++------ modern/src/settings/NotificationsPage.js | 12 ++++++------ modern/src/settings/UsersPage.js | 12 ++++++------ 8 files changed, 43 insertions(+), 43 deletions(-) (limited to 'modern') diff --git a/modern/src/settings/CalendarsPage.js b/modern/src/settings/CalendarsPage.js index a3ff51d5..3f4aa3d3 100644 --- a/modern/src/settings/CalendarsPage.js +++ b/modern/src/settings/CalendarsPage.js @@ -12,8 +12,8 @@ import CollectionActions from './components/CollectionActions'; const useStyles = makeStyles((theme) => ({ columnAction: { - width: theme.spacing(1), - padding: theme.spacing(0, 1), + width: '1%', + paddingRight: theme.spacing(1), }, })); @@ -39,17 +39,17 @@ const CalendarsPage = () => { - {t('sharedName')} + {items.map((item) => ( + {item.name} - {item.name} ))} diff --git a/modern/src/settings/CommandsPage.js b/modern/src/settings/CommandsPage.js index dd1559d9..397263d0 100644 --- a/modern/src/settings/CommandsPage.js +++ b/modern/src/settings/CommandsPage.js @@ -14,8 +14,8 @@ import CollectionActions from './components/CollectionActions'; const useStyles = makeStyles((theme) => ({ columnAction: { - width: theme.spacing(1), - padding: theme.spacing(0, 1), + width: '1%', + paddingRight: theme.spacing(1), }, })); @@ -41,21 +41,21 @@ const CommandsPage = () => {
- {t('sharedDescription')} {t('sharedType')} {t('commandSendSms')} + {items.map((item) => ( - - - {item.description} {t(prefixString('command', item.type))} {formatBoolean(item.textChannel, t)} + + + ))} diff --git a/modern/src/settings/ComputedAttributesPage.js b/modern/src/settings/ComputedAttributesPage.js index b754f9fe..c8e07b71 100644 --- a/modern/src/settings/ComputedAttributesPage.js +++ b/modern/src/settings/ComputedAttributesPage.js @@ -13,8 +13,8 @@ import CollectionActions from './components/CollectionActions'; const useStyles = makeStyles((theme) => ({ columnAction: { - width: theme.spacing(1), - padding: theme.spacing(0, 1), + width: '1%', + paddingRight: theme.spacing(1), }, })); @@ -41,25 +41,25 @@ const ComputedAttributesPage = () => {
- {administrator && } {t('sharedDescription')} {t('sharedAttribute')} {t('sharedExpression')} {t('sharedType')} + {administrator && } {items.map((item) => ( + {item.description} + {item.attribute} + {item.expression} + {item.type} {administrator && ( )} - {item.description} - {item.attribute} - {item.expression} - {item.type} ))} diff --git a/modern/src/settings/DriversPage.js b/modern/src/settings/DriversPage.js index c4de30e9..b66f9f9a 100644 --- a/modern/src/settings/DriversPage.js +++ b/modern/src/settings/DriversPage.js @@ -12,8 +12,8 @@ import CollectionActions from './components/CollectionActions'; const useStyles = makeStyles((theme) => ({ columnAction: { - width: theme.spacing(1), - padding: theme.spacing(0, 1), + width: '1%', + paddingRight: theme.spacing(1), }, })); @@ -39,19 +39,19 @@ const DriversPage = () => {
- {t('sharedName')} {t('deviceIdentifier')} + {items.map((item) => ( + {item.name} + {item.uniqueId} - {item.name} - {item.uniqueId} ))} diff --git a/modern/src/settings/GroupsPage.js b/modern/src/settings/GroupsPage.js index 7526563b..1ec63b0c 100644 --- a/modern/src/settings/GroupsPage.js +++ b/modern/src/settings/GroupsPage.js @@ -13,7 +13,7 @@ import CollectionActions from './components/CollectionActions'; const useStyles = makeStyles((theme) => ({ columnAction: { width: '1%', - padding: theme.spacing(0, 1), + paddingRight: theme.spacing(1), }, })); @@ -39,17 +39,17 @@ const GroupsPage = () => {
- {t('sharedName')} + {items.map((item) => ( + {item.name} - {item.name} ))} diff --git a/modern/src/settings/MaintenancesPage.js b/modern/src/settings/MaintenancesPage.js index d4a06fd2..6f752b32 100644 --- a/modern/src/settings/MaintenancesPage.js +++ b/modern/src/settings/MaintenancesPage.js @@ -15,8 +15,8 @@ import CollectionActions from './components/CollectionActions'; const useStyles = makeStyles((theme) => ({ columnAction: { - width: theme.spacing(1), - padding: theme.spacing(0, 1), + width: '1%', + paddingRight: theme.spacing(1), }, })); @@ -62,23 +62,23 @@ const MaintenacesPage = () => {
- {t('sharedName')} {t('sharedType')} {t('maintenanceStart')} {t('maintenancePeriod')} + {items.map((item) => ( - - - {item.name} {item.type} {convertAttribute(item.type, item.start)} {convertAttribute(item.type, item.period)} + + + ))} diff --git a/modern/src/settings/NotificationsPage.js b/modern/src/settings/NotificationsPage.js index ae463dd3..5f8c5512 100644 --- a/modern/src/settings/NotificationsPage.js +++ b/modern/src/settings/NotificationsPage.js @@ -14,8 +14,8 @@ import CollectionActions from './components/CollectionActions'; const useStyles = makeStyles((theme) => ({ columnAction: { - width: theme.spacing(1), - padding: theme.spacing(0, 1), + width: '1%', + paddingRight: theme.spacing(1), }, })); @@ -52,23 +52,23 @@ const NotificationsPage = () => {
- {t('notificationType')} {t('notificationAlways')} {t('sharedAlarms')} {t('notificationNotificators')} + {items.map((item) => ( - - - {t(prefixString('event', item.type))} {formatBoolean(item.always, t)} {formatList('alarm', item.attributes.alarms)} {formatList('notificator', item.notificators)} + + + ))} diff --git a/modern/src/settings/UsersPage.js b/modern/src/settings/UsersPage.js index 8f3aca46..adbbcbda 100644 --- a/modern/src/settings/UsersPage.js +++ b/modern/src/settings/UsersPage.js @@ -13,8 +13,8 @@ import CollectionActions from './components/CollectionActions'; const useStyles = makeStyles((theme) => ({ columnAction: { - width: theme.spacing(1), - padding: theme.spacing(0, 1), + width: '1%', + paddingRight: theme.spacing(1), }, })); @@ -40,23 +40,23 @@ const UsersPage = () => {
- {t('sharedName')} {t('userEmail')} {t('userAdmin')} {t('sharedDisabled')} + {items.map((item) => ( - - - {item.name} {item.email} {formatBoolean(item.administrator, t)} {formatBoolean(item.disabled, t)} + + + ))} -- cgit v1.2.3