Skip to content

Commit e85da89

Browse files
authored
Merge pull request #18 from AplaProject/release/1.0.2
Release/1.0.2
2 parents db7b519 + db3b195 commit e85da89

6 files changed

Lines changed: 24 additions & 7 deletions

File tree

public/settings.json.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"key": "DEFAULT_NETWORK",
33
"name": "Default Network",
4-
"networkID": 100,
4+
"networkID": 1,
55
"fullNodes": [
66
"http://127.0.0.1:7079"
77
],

src/app/components/Main/UserMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class UserMenu extends React.Component<IUserMenuProps> {
8585
<>
8686
<li>
8787
<CloseDropdownButton onClick={this.props.onChangePassword}>
88-
<em className="icon icon-key text-muted." />
88+
<em className="icon icon-key text-muted" />
8989
<span>
9090
<FormattedMessage id="general.wallet.changepassword" defaultMessage="Change password" />
9191
</span>
@@ -117,9 +117,9 @@ class UserMenu extends React.Component<IUserMenuProps> {
117117
</div>
118118
<ul className="dropdown-group">
119119
{this.props.walletEcosystems.map(value => (
120-
<li key={value.ecosystem} style={{ overflow: 'hidden', textOverflow: 'ellipsis' }}>
120+
<li key={value.ecosystem}>
121121
{/*wallet.ecosystem !== this.props.wallet.ecosystem && this.props.switchWallet.bind(this, wallet)*/}
122-
<CloseDropdownButton onClick={() => this.props.onSwitchEcosystem(value.ecosystem, !value.roles.length)}>
122+
<CloseDropdownButton style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }} onClick={() => this.props.onSwitchEcosystem(value.ecosystem, !value.roles.length)}>
123123
{value.name ?
124124
(
125125
value.name

src/app/components/Modal/PageModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Protypo from 'containers/Widgets/Protypo';
1010
import { TProtypoElement } from 'apla/protypo';
1111

1212
export interface IPageModalProps {
13+
name: string;
1314
title: string;
1415
width?: number;
1516
tree: TProtypoElement[];

src/app/components/Modal/Wrapper.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,20 @@ class ModalWrapper extends React.Component<IModalWrapperProps, IModalWrapperStat
121121
}
122122

123123
componentWillReceiveProps(props: IModalWrapperProps & { children: React.ReactNode }) {
124-
this.enqueueModal(props.children);
124+
if (!this.props.children) {
125+
this.enqueueModal(props.children);
126+
}
127+
else {
128+
const updateProc = (this.props.children as any || {}).key === (props.children as any || {}).key;
129+
if (updateProc) {
130+
this.setState({
131+
activeModal: props.children
132+
});
133+
}
134+
else {
135+
this.enqueueModal(props.children);
136+
}
137+
}
125138
}
126139

127140
onEntered = () => {
@@ -184,7 +197,7 @@ class ModalWrapper extends React.Component<IModalWrapperProps, IModalWrapperStat
184197
</Transition>
185198
</StyledModalWrapper>
186199
)}
187-
</Transition >
200+
</Transition>
188201

189202
);
190203
}

src/app/components/Validation/ValidatedRadioGroup.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ export default class ValidatedRadioGroup extends React.Component<IValidatedRadio
7171
if (this.props.onChange) {
7272
this.props.onChange(e);
7373
}
74+
75+
(this.context.form as ValidatedForm).emitUpdate(this.props.name, (e.target as any).value);
7476
}
7577

7678
onBlur = (e: React.FocusEvent<HTMLInputElement>) => {

src/app/modules/modal/epics/modalPageEpic.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ const modalPageEpic: Epic = (action$, store, { api }) => action$.ofAction(modalP
2323

2424
})).map(payload =>
2525
modalShow({
26-
id: 'PAGE_MODAL',
26+
id: 'PAGE_MODAL:' + action.payload.name,
2727
type: 'PAGE_MODAL',
2828
params: {
29+
name: action.payload.name,
2930
title: action.payload.title || action.payload.name,
3031
width: action.payload.width,
3132
tree: payload.tree

0 commit comments

Comments
 (0)