Skip to content

Commit

Permalink
Merge pull request #171 from pagopa/PAGOPA-1622-sviluppo-api-config-g…
Browse files Browse the repository at this point in the history
…estione-flag-stand-in-per-wsdl

feat: [PAGOPA-1622] adding value in station and channel pages
  • Loading branch information
andrea-deri authored Nov 18, 2024
2 parents 4539a98 + 6d189f7 commit a956595
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pagopa-api-config-fe",
"version": "1.36.9",
"version": "1.36.9-1-PAGOPA-1622-sviluppo-api-config-gestione-flag-stand-in-per-wsdl",
"license": "MIT",
"scripts": {
"envconfig": "chmod +x envconfig.sh && . ./envconfig.sh && chmod +x version.sh && ./version.sh",
Expand Down
14 changes: 14 additions & 0 deletions src/pages/channels/ChannelView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,20 @@ export default class ChannelView extends React.Component<IProps, IState> {
disabled={this.props.readOnly}
/>
</Form.Group>
<Form.Group controlId="flag_standin"
className="col-md-2 custom-control-box">
<Form.Check
custom
checked={this.props.channel.flag_standin === true}
type={'checkbox'}
id={'flag_standin'}
label={'Flag standin'}
name="flag_standin"
onChange={(e) => this.handleChange(e)}
readOnly={this.props.readOnly}
disabled={this.props.readOnly}
/>
</Form.Group>
</div>
</Card.Body>
{!this.props.readOnly &&
Expand Down
1 change: 1 addition & 0 deletions src/pages/channels/CreateChannel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default class CreateChannel extends React.Component<IProps, IState> {
digital_stamp_brand: false,
flag_io: false,
flag_psp_cp: false,
flag_standin: false,
serv_plugin: '-',
agid: false
} as unknown as ChannelDetails,
Expand Down
1 change: 1 addition & 0 deletions src/pages/stations/CreateStation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export default class CreateStation extends React.Component<IProps, IState> {
timeout_c: 120,
version: 1,
flag_online: false,
flag_standin: false,
invio_rt_istantaneo: false,
ip_4mod: false,
new_password: "",
Expand Down
12 changes: 12 additions & 0 deletions src/pages/stations/StationView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,18 @@ export default class StationView extends React.Component<IProps, IState> {
</Form.Group>

</div>
<div className="row">
<Form.Group controlId="flag_standin" className="col-md-2">
<Form.Label>Flag standin</Form.Label>
<Form.Control as="select" name="flag_standin" placeholder="stato"
onChange={(e) => this.handleChange(e)}
value={String(this.props.station.flag_standin)}
readOnly={this.props.readOnly}>
<option value="true">Abilitato</option>
<option value="false">Non Abilitato</option>
</Form.Control>
</Form.Group>
</div>

</Card.Body>
{
Expand Down

0 comments on commit a956595

Please sign in to comment.