Skip to content

Commit 35276f8

Browse files
committed
add details on modal
1 parent 6355f53 commit 35276f8

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

apps/remix-dapp/src/locales/en/udapp.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
"udapp.hash": "hash",
5151
"udapp.signature": "signature",
5252
"udapp.forkStateTitle": "Fork VM state",
53-
"udapp.forkStateLabel": "State Name",
53+
"udapp.forkStateLabel": "New environment name",
54+
"udapp.forkVmStateDesc1":"Forking state will create a new environment with same state as selected environment",
55+
"udapp.forkVmStateDesc2":"New environment will be pinned, which can be unpinned or deleted using Envionment Explorer",
5456
"udapp.fork": "Fork",
5557
"udapp.deleteVmStateTitle": "Delete VM state",
5658
"udapp.deleteVmStateDesc1": "Deleting the state of this VM will delete the associated transaction details in this Workspace.",

apps/remix-ide/src/app/tabs/locales/en/udapp.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
"udapp.hash": "hash",
5151
"udapp.signature": "signature",
5252
"udapp.forkStateTitle": "Fork VM state",
53-
"udapp.forkStateLabel": "State Name",
53+
"udapp.forkStateLabel": "New environment name",
54+
"udapp.forkVmStateDesc1":"Forking state will create a new environment with same state as selected environment",
55+
"udapp.forkVmStateDesc2":"After forking, new environment will be pinned and selected automatically. It can be unpinned or deleted using Envionment Explorer",
5456
"udapp.fork": "Fork",
5557
"udapp.deleteVmStateTitle": "Delete VM state",
5658
"udapp.deleteVmStateDesc1": "Deleting the state of this VM will delete the associated transaction details in this Workspace.",

apps/remix-ide/src/blockchain/blockchain.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class Blockchain extends Plugin {
157157
_paq.push(['trackEvent', 'blockchain', 'providerPinned', name])
158158
this.emit('providersChanged')
159159
this.changeExecutionContext({ context: name }, null, null, null)
160-
this.call('notification', 'toast', `VM state '${providerName}' forked and selected as current environment.`)
160+
this.call('notification', 'toast', `New environment '${providerName}' created with forked state.`)
161161
})
162162

163163
this.on('environmentExplorer', 'providerUnpinned', (name, provider) => {

libs/remix-ui/run-tab/src/lib/components/environment.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ export function EnvironmentUI(props: EnvironmentProps) {
3131
const forkStatePrompt = (defaultName: string) => {
3232
return (
3333
<div data-id="forkVmStateModal">
34+
<ul className='ml-3'>
35+
<li><FormattedMessage id="udapp.forkVmStateDesc1"/></li>
36+
<li><FormattedMessage id="udapp.forkVmStateDesc2"/></li>
37+
</ul>
3438
<label id="stateName" className="form-check-label" style={{ fontWeight: 'bolder' }}>
3539
<FormattedMessage id="udapp.forkStateLabel" />
3640
</label>

0 commit comments

Comments
 (0)