diff --git a/packages/apollo/src/App.js b/packages/apollo/src/App.js index cd9c4bab..7bb9a2bf 100644 --- a/packages/apollo/src/App.js +++ b/packages/apollo/src/App.js @@ -38,7 +38,7 @@ import NodeStatus from './utils/status'; const SCOPE = 'app'; const Log = new Logger('App'); -Log.setLogLevel('warn'); +Log.setLogLevel('debug'); class App extends Component { cName = 'App'; diff --git a/packages/apollo/src/components/CAModal/CAModal.js b/packages/apollo/src/components/CAModal/CAModal.js index a23a4aa4..25b3c579 100644 --- a/packages/apollo/src/components/CAModal/CAModal.js +++ b/packages/apollo/src/components/CAModal/CAModal.js @@ -36,6 +36,7 @@ import SidePanelWarning from '../SidePanelWarning/SidePanelWarning'; import TranslateLink from '../TranslateLink/TranslateLink'; import Wizard from '../Wizard/Wizard'; import WizardStep from '../WizardStep/WizardStep'; +import RenderParamHTML from '../RenderHTML/RenderParamHTML'; const SCOPE = 'caModal'; const Log = new Logger(SCOPE); @@ -530,31 +531,25 @@ export class CAModal extends React.Component { >

- {this.props.ca.location === 'ibm_saas' - ? translate('delete_ca_desc', { - name: ( - Clipboard.copyToClipboard(this.props.ca.display_name)} - > - {this.props.ca.display_name} - - ), - }) - : translate('remove_ca_desc', { - name: ( - Clipboard.copyToClipboard(this.props.ca.display_name)} - > - {this.props.ca.display_name} - - ), - })} + {this.props.ca.location === 'ibm_saas' ? RenderParamHTML(translate, 'delete_ca_desc', { + name: Clipboard.copyToClipboard(this.props.ca.display_name)} + > + {this.props.ca.display_name} + + }) : RenderParamHTML(translate, 'remove_ca_desc', { + name: Clipboard.copyToClipboard(this.props.ca.display_name)} + > + {this.props.ca.display_name} + + })}

{translate('remove_ca_confirm')}
@@ -568,7 +563,7 @@ export class CAModal extends React.Component { }, ]} /> - + ); } @@ -582,17 +577,15 @@ export class CAModal extends React.Component {

- {translate('upgrade_node_desc', { - name: ( - Clipboard.copyToClipboard(this.props.ca.display_name)} - > - {this.props.ca.display_name} - - ), + {RenderParamHTML(translate, 'upgrade_node_desc', { + name: Clipboard.copyToClipboard(this.props.ca.display_name)} + > + {this.props.ca.display_name} + })}

@@ -653,7 +646,7 @@ export class CAModal extends React.Component {

- {translate('confirm_patch_desc', { + {RenderParamHTML(translate, 'confirm_patch_desc', { name: ( {this.props.new_version} - ), + ) })}

diff --git a/packages/apollo/src/components/ChannelConsenterModal/ChannelConsenterModal.js b/packages/apollo/src/components/ChannelConsenterModal/ChannelConsenterModal.js index d31f1e61..4cad3848 100644 --- a/packages/apollo/src/components/ChannelConsenterModal/ChannelConsenterModal.js +++ b/packages/apollo/src/components/ChannelConsenterModal/ChannelConsenterModal.js @@ -26,6 +26,7 @@ import Form from '../Form/Form'; import Logger from '../Log/Logger'; import Wizard from '../Wizard/Wizard'; import WizardStep from '../WizardStep/WizardStep'; +import RenderParamHTML from '../RenderHTML/RenderParamHTML'; const SCOPE = 'channelConsenterModal'; const Log = new Logger(SCOPE); @@ -40,7 +41,7 @@ class ChannelConsenterModal extends React.Component { }); } - removeConsenter = async() => { + removeConsenter = async () => { try { let options = { channel_id: this.props.channelId, @@ -59,7 +60,7 @@ class ChannelConsenterModal extends React.Component { } }; - updateConsenter = async() => { + updateConsenter = async () => { try { let options = { channel_id: this.props.channelId, @@ -101,7 +102,7 @@ class ChannelConsenterModal extends React.Component { >

- {translate('remove_consenter_application_channel_desc', { + {RenderParamHTML(translate, 'remove_consenter_application_channel_desc', { name: (

- {translate('update_consenter_application_channel_desc', { + {RenderParamHTML(translate, 'update_consenter_application_channel_desc', { name: (

- {translate('remove_ca_user_desc', { + {RenderParamHTML(translate, 'remove_ca_user_desc', { enroll_id: (

- {translate('identities_from_chosen_ca', { + {RenderParamHTML(translate, 'identities_from_chosen_ca', { name: ( {translate('remove_identity')}

- {translate('remove_identity_desc', { + {RenderParamHTML(translate, 'remove_identity_desc', { name: ( {translate('remove_org')}

- {translate('remove_msp_desc', { + {RenderParamHTML(translate, 'remove_msp_desc', { name: ( +

} + element={} /> } @@ -168,92 +169,92 @@ class Main extends Component { /> } + element={} /> } + element={} /> {/* /debug is a debugging route that exposes a link in the left pane to download the config block of the channel */} } + element={} /> } + element={} /> } + element={} exact /> {/* 2023/05/01 the /users route is now legacy, renamed to /access */} } + element={} exact /> } + element={} exact /> } + element={} exact /> {/* /debug is a debugging route that exposes a link in the left pane to download the config block of the channel */} } + element={} exact /> } + element={} exact /> } + element={} exact /> } + element={} exact /> } + element={} exact /> } + element={} exact /> } + element={} exact /> } + element={} exact /> } + element={} /> } + element={} exact /> } + element={} exact /> } + element={} exact /> } + element={} /> } + element={} /> @@ -321,7 +322,7 @@ class Main extends Component { )}
- + ); } } diff --git a/packages/apollo/src/components/MspDeleteModal/MspDeleteModal.js b/packages/apollo/src/components/MspDeleteModal/MspDeleteModal.js index b6720c46..974821bf 100644 --- a/packages/apollo/src/components/MspDeleteModal/MspDeleteModal.js +++ b/packages/apollo/src/components/MspDeleteModal/MspDeleteModal.js @@ -25,6 +25,7 @@ import Helper from '../../utils/helper'; import Form from '../Form/Form'; import Logger from '../Log/Logger'; import SidePanel from '../SidePanel/SidePanel'; +import RenderParamHTML from '../RenderHTML/RenderParamHTML'; const SCOPE = 'mspDeleteModal'; const Log = new Logger(SCOPE); @@ -91,7 +92,7 @@ export class MspDeleteModal extends React.Component {

{translate(this.props.ordererAdmin ? 'remove_adminmsp_from_orderer' : 'remove_msp_from_consortium')}

- {translate(this.props.ordererAdmin ? 'remove_adminmsp_from_orderer_desc' : 'remove_msp_from_consortium_desc', { + {RenderParamHTML(translate, this.props.ordererAdmin ? 'remove_adminmsp_from_orderer_desc' : 'remove_msp_from_consortium_desc', { name: ( { + removeConsenter = async () => { try { await OrdererRestApi.removeOrdererNodeFromSystemChannel({ ...this.props.orderer, @@ -56,7 +57,7 @@ class OrdererConsenterModal extends React.Component { } }; - updateOrdererCerts = async() => { + updateOrdererCerts = async () => { try { await this.retryUpdateCert(this.props.orderer.raft || [this.props.orderer]); this.props.onComplete(); @@ -104,7 +105,7 @@ class OrdererConsenterModal extends React.Component { >

- {translate('remove_consenter_system_channel_desc', { + {RenderParamHTML(translate, 'remove_consenter_system_channel_desc', { name: (

- {translate('update_consenter_system_channel_desc', { + {RenderParamHTML(translate, 'update_consenter_system_channel_desc', { name: (

{this.props.channelInfo.name}

- {translate('remove_orderer_channel_desc', { + {RenderParamHTML(translate, 'remove_orderer_channel_desc', { name: (

{translate('node_requires_attention')}

-

{translate('node_requires_attention_desc', data)}

+

{RenderParamHTML(translate, 'node_requires_attention_desc', data)}