Skip to content

Commit

Permalink
console,account: Resolve issues after message deduplication
Browse files Browse the repository at this point in the history
  • Loading branch information
kschiffer committed Oct 24, 2023
1 parent e1b0bc2 commit 84e5f8c
Show file tree
Hide file tree
Showing 7 changed files with 488 additions and 486 deletions.
4 changes: 2 additions & 2 deletions pkg/webui/console/components/routing-policy-form/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const RoutingPolicyForm = ({
<Form.Field
name="policy.uplink.mac_data"
component={Checkbox}
label={policyMessages.macData}
label={sharedMessages.macData}
description={policyMessages.macDataDesc}
/>
<Form.Field
Expand Down Expand Up @@ -169,7 +169,7 @@ const RoutingPolicyForm = ({
<Form.Field
name="policy.downlink.mac_data"
component={Checkbox}
label={policyMessages.macData}
label={sharedMessages.macData}
description={policyMessages.macDataAllowDesc}
/>
<Form.Field
Expand Down
4 changes: 2 additions & 2 deletions pkg/webui/console/components/routing-policy/sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const RoutingPolicySheet = ({ policy }) => {
/>
<RoutingPolicy
enabled={uplink.mac_data}
message={m.macData}
message={sharedMessages.macData}
positiveMessage={m.forwardsMacData}
negativeMessage={m.doesNotForwardMacData}
/>
Expand Down Expand Up @@ -98,7 +98,7 @@ const RoutingPolicySheet = ({ policy }) => {
/>
<RoutingPolicy
enabled={downlink.mac_data}
message={m.macData}
message={sharedMessages.macData}
positiveMessage={m.allowsMacData}
negativeMessage={m.doesNotAllowMacData}
/>
Expand Down
1 change: 0 additions & 1 deletion pkg/webui/console/lib/packet-broker/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default defineMessages({
joinRequestDesc: 'Forward join-request messages',
localizationInformation: 'Localization information',
localizationInformationDesc: 'Forward gateway location, RSSI, SNR and fine timestamp',
macData: 'MAC data',
macDataAllowDesc: 'Allow downlink messages with FPort of 0',
macDataDesc: 'Forward uplink messages with FPort 0',
signalQualityInformation: 'Signal quality information',
Expand Down
8 changes: 5 additions & 3 deletions pkg/webui/console/views/admin-panel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,23 @@ import {
} from '@console/lib/feature-checks'

const m = defineMessages({
adminPanel: 'Admin panel',
userManagement: 'User management',
globalNetworkSettings: 'Global network settings',
peeringSettings: 'Peering settings',
})

const AdminPanel = () => {
useBreadcrumbs('admin-panel', <Breadcrumb path="/admin-panel" content={m.adminPanel} />)
useBreadcrumbs(
'admin-panel',
<Breadcrumb path="/admin-panel" content={sharedMessages.adminPanel} />,
)
const showUserManagement = useSelector(state => checkFromState(mayManageUsers, state))
const showPacketBroker = useSelector(state => checkFromState(mayConfigurePacketBroker, state))

return (
<Require featureCheck={mayPerformAdminActions} otherwise={{ redirect: '/' }}>
<Breadcrumbs />
<IntlHelmet title={m.adminPanel} />
<IntlHelmet title={sharedMessages.adminPanel} />
<PanelView>
<PanelView.Item
title={sharedMessages.networkInformation}
Expand Down
1 change: 1 addition & 0 deletions pkg/webui/lib/shared-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ export default defineMessages({
lorawanInformation: 'LoRaWAN information',
lorawanOptions: 'LoRaWAN options',
lorawanPhyVersionDescription: 'The LoRaWAN PHY version of the end device',
macData: 'MAC data',
macSettingsError:
'There was an error and the default MAC settings for the <code>{freqPlan}</code> frequency plan could not be loaded',
macVersion: 'LoRaWAN version',
Expand Down
2 changes: 1 addition & 1 deletion pkg/webui/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,6 @@
"console.lib.packet-broker.messages.joinRequestDesc": "Forward join-request messages",
"console.lib.packet-broker.messages.localizationInformation": "Localization information",
"console.lib.packet-broker.messages.localizationInformationDesc": "Forward gateway location, RSSI, SNR and fine timestamp",
"console.lib.packet-broker.messages.macData": "MAC data",
"console.lib.packet-broker.messages.macDataAllowDesc": "Allow downlink messages with FPort of 0",
"console.lib.packet-broker.messages.macDataDesc": "Forward uplink messages with FPort 0",
"console.lib.packet-broker.messages.signalQualityInformation": "Signal quality information",
Expand Down Expand Up @@ -1269,6 +1268,7 @@
"lib.shared-messages.lorawanInformation": "LoRaWAN information",
"lib.shared-messages.lorawanOptions": "LoRaWAN options",
"lib.shared-messages.lorawanPhyVersionDescription": "The LoRaWAN PHY version of the end device",
"lib.shared-messages.macData": "MAC data",
"lib.shared-messages.macSettingsError": "There was an error and the default MAC settings for the <code>{freqPlan}</code> frequency plan could not be loaded",
"lib.shared-messages.macVersion": "LoRaWAN version",
"lib.shared-messages.messageTypes": "Message types",
Expand Down
Loading

0 comments on commit 84e5f8c

Please sign in to comment.