Skip to content

Commit

Permalink
[DDW-481] Fix inline input error tooltip validation
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaglumac committed Jan 28, 2021
1 parent c6c1212 commit b3532d6
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 50 deletions.
Expand Up @@ -87,8 +87,8 @@ export default class InlineEditingInput extends Component<Props, State> {
value: this.props.value,
validators: [
({ field }) => [
this.props.isValid(field.value),
this.state.isActive ? this.props.valueErrorMessage : null,
this.props.isValid(field.value) && this.state.isActive,
this.props.valueErrorMessage || null,
],
],
},
Expand Down
96 changes: 48 additions & 48 deletions source/renderer/app/i18n/locales/defaultMessages.json
Expand Up @@ -2182,223 +2182,223 @@
"description": "description for the Stake Pools settings page.",
"end": {
"column": 3,
"line": 31
"line": 34
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smash.description",
"start": {
"column": 15,
"line": 26
"line": 29
}
},
{
"defaultMessage": "!!!Stakepool Metadata Aggregation Server (SMASH)",
"description": "description for the Stake Pools settings page.",
"end": {
"column": 3,
"line": 36
"line": 39
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smash.descriptionLinkLabel",
"start": {
"column": 24,
"line": 32
"line": 35
}
},
{
"defaultMessage": "!!!https://iohk.io/en/blog/posts/2020/11/17/in-pools-we-trust/",
"description": "description for the Stake Pools settings page.",
"end": {
"column": 3,
"line": 42
"line": 45
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smash.descriptionLinkUrl",
"start": {
"column": 22,
"line": 37
"line": 40
}
},
{
"defaultMessage": "!!!The IOHK server ensures that registered stake pools are valid, helps to avoid duplicated ticker names or trademarks, and checks that the pools do not feature potentially offensive or harmful information.",
"description": "description for the Stake Pools settings page.",
"end": {
"column": 3,
"line": 48
"line": 51
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smash.descriptionIOHKContent1",
"start": {
"column": 27,
"line": 43
"line": 46
}
},
{
"defaultMessage": "!!!This allows us to deal with any scams, trolls, or abusive behavior by filtering out potentially problematic actors. {link} about the IOHK SMASH server.",
"description": "description for the Stake Pools settings page.",
"end": {
"column": 3,
"line": 54
"line": 57
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smash.descriptionIOHKContent2",
"start": {
"column": 27,
"line": 49
"line": 52
}
},
{
"defaultMessage": "!!!Read more",
"description": "description for the Stake Pools settings page.",
"end": {
"column": 3,
"line": 59
"line": 62
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smash.descriptionIOHKLinkLabel",
"start": {
"column": 28,
"line": 55
"line": 58
}
},
{
"defaultMessage": "!!!https://iohk.io/en/blog/posts/2020/11/17/in-pools-we-trust/",
"description": "description for the Stake Pools settings page.",
"end": {
"column": 3,
"line": 65
"line": 68
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smash.descriptionIOHKLinkUrl",
"start": {
"column": 26,
"line": 60
"line": 63
}
},
{
"defaultMessage": "!!!<b>This option is not recommended!</b> Without the off-chain metadata server your Daedalus client will fetch this data by contacting every stake pool individually, which is a very slow and resource-consuming process. The list of stake pools received is not curated, so Daedalus will receive legitimate pools, duplicates, and fake pools. An added risk to this process is that your antivirus or antimalware software could recognize the thousands of network requests as malicious behavior by the Daedalus client.",
"description": "description for the Stake Pools settings page.",
"end": {
"column": 3,
"line": 71
"line": 74
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smash.descriptionNone",
"start": {
"column": 19,
"line": 66
"line": 69
}
},
{
"defaultMessage": "!!!Off-chain metadata server (SMASH)",
"description": "smashSelectLabel for the \"Smash\" selection on the Stake Pools settings page.",
"end": {
"column": 3,
"line": 77
"line": 80
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smash.select.label",
"start": {
"column": 20,
"line": 72
"line": 75
}
},
{
"defaultMessage": "!!!IOHK (Recommended)",
"description": "smashSelectCustomServer option for the \"Smash\" selection on the Stake Pools settings page.",
"end": {
"column": 3,
"line": 83
"line": 86
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smash.select.IOHKServer",
"start": {
"column": 25,
"line": 78
"line": 81
}
},
{
"defaultMessage": "!!!None - let my Daedalus client fetch the data",
"description": "smashSelectCustomServer option for the \"Smash\" selection on the Stake Pools settings page.",
"end": {
"column": 3,
"line": 89
"line": 92
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smash.select.direct",
"start": {
"column": 21,
"line": 84
"line": 87
}
},
{
"defaultMessage": "!!!Custom server",
"description": "smashSelectCustomServer option for the \"Smash\" selection on the Stake Pools settings page.",
"end": {
"column": 3,
"line": 95
"line": 98
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smash.select.customServer",
"start": {
"column": 27,
"line": 90
"line": 93
}
},
{
"defaultMessage": "!!!SMASH server URL",
"description": "smashURLInputLabel for the \"Smash Custom Server\" selection on the Stake Pools settings page.",
"end": {
"column": 3,
"line": 101
"line": 104
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smashUrl.input.label",
"start": {
"column": 22,
"line": 96
"line": 99
}
},
{
"defaultMessage": "!!!Enter custom server URL",
"description": "smashUrlInputPlaceholder for the \"Smash Custom Server\" selection on the Stake Pools settings page.",
"end": {
"column": 3,
"line": 107
"line": 110
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smashUrl.input.placeholder",
"start": {
"column": 28,
"line": 102
"line": 105
}
},
{
"defaultMessage": "!!!Invalid URL",
"description": "smashUrlInputInvalidUrl for the \"Smash Custom Server\" selection on the Stake Pools settings page.",
"end": {
"column": 3,
"line": 113
"line": 116
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "settings.stakePools.smashUrl.input.invalidUrl",
"start": {
"column": 27,
"line": 108
"line": 111
}
},
{
"defaultMessage": "!!!Your changes have been saved",
"description": "Message \"Your changes have been saved\" for inline editing (eg. on Profile Settings page).",
"end": {
"column": 3,
"line": 119
"line": 122
},
"file": "source/renderer/app/components/settings/categories/StakePoolsSettings.js",
"id": "inline.editing.input.changesSaved",
"start": {
"column": 16,
"line": 114
"line": 117
}
}
],
Expand Down Expand Up @@ -5633,111 +5633,111 @@
"description": "\"delegatingListTitle\" for the Stake Pools page.",
"end": {
"column": 3,
"line": 27
"line": 30
},
"file": "source/renderer/app/components/staking/stake-pools/StakePools.js",
"id": "staking.stakePools.delegatingListTitle",
"start": {
"column": 23,
"line": 23
"line": 26
}
},
{
"defaultMessage": "!!!Stake pools",
"description": "\"listTitle\" for the Stake Pools page.",
"end": {
"column": 3,
"line": 32
"line": 35
},
"file": "source/renderer/app/components/staking/stake-pools/StakePools.js",
"id": "staking.stakePools.listTitle",
"start": {
"column": 13,
"line": 28
"line": 31
}
},
{
"defaultMessage": "!!!Loading stake pools",
"description": "\"listTitleLoading\" for the Stake Pools page.",
"end": {
"column": 3,
"line": 37
"line": 40
},
"file": "source/renderer/app/components/staking/stake-pools/StakePools.js",
"id": "staking.stakePools.listTitleLoading",
"start": {
"column": 20,
"line": 33
"line": 36
}
},
{
"defaultMessage": "!!!Stake pools. Search results:",
"description": "\"listTitleSearch\" for the Stake Pools page.",
"end": {
"column": 3,
"line": 42
"line": 45
},
"file": "source/renderer/app/components/staking/stake-pools/StakePools.js",
"id": "staking.stakePools.listTitleSearch",
"start": {
"column": 19,
"line": 38
"line": 41
}
},
{
"defaultMessage": "!!!({pools})",
"description": "\"listTitleStakePools\" for the Stake Pools page.",
"end": {
"column": 3,
"line": 47
"line": 50
},
"file": "source/renderer/app/components/staking/stake-pools/StakePools.js",
"id": "staking.stakePools.listTitleStakePools",
"start": {
"column": 23,
"line": 43
"line": 46
}
},
{
"defaultMessage": "!!!Loading stake pools",
"description": "Loading stake pool message for the Delegation center body section.",
"end": {
"column": 3,
"line": 53
"line": 56
},
"file": "source/renderer/app/components/staking/stake-pools/StakePools.js",
"id": "staking.stakePools.loadingStakePoolsMessage",
"start": {
"column": 28,
"line": 48
"line": 51
}
},
{
"defaultMessage": "!!!Moderated by",
"description": "moderatedBy message for the Delegation center body section.",
"end": {
"column": 3,
"line": 58
"line": 61
},
"file": "source/renderer/app/components/staking/stake-pools/StakePools.js",
"id": "staking.stakePools.moderatedBy",
"start": {
"column": 15,
"line": 54
"line": 57
}
},
{
"defaultMessage": "!!!Unmoderated",
"description": "unmoderated message for the Delegation center body section.",
"end": {
"column": 3,
"line": 63
"line": 66
},
"file": "source/renderer/app/components/staking/stake-pools/StakePools.js",
"id": "staking.stakePools.unmoderated",
"start": {
"column": 15,
"line": 59
"line": 62
}
}
],
Expand Down

0 comments on commit b3532d6

Please sign in to comment.