-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Metadata Contract Name To Success Modal #2677
Conversation
src/app/tabs/compile-tab.js
Outdated
@@ -348,7 +349,7 @@ class CompileTab extends ViewPlugin { | |||
var result = yo`<div>${uploaded.map((value) => { | |||
return yo`<div><b>${value.filename}</b> : <pre>${value.output.url}</pre></div>` | |||
})}</div>` | |||
modalDialogCustom.alert(yo`<span>Metadata published successfully.<br> <pre>${result}</pre> </span>`) | |||
modalDialogCustom.alert(`Published ${contract.name} Metadata`, yo`<span>Metadata of ${contract.name.toLowerCase()} contract was published successfully.<br> <pre>${result}</pre> </span>`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please add quotes around the 'contract.name'?
src/app/tabs/compile-tab.js
Outdated
@@ -332,7 +332,7 @@ class CompileTab extends ViewPlugin { | |||
var result = yo`<div>${uploaded.map((value) => { | |||
return yo`<div><b>${value.filename}</b> : <pre>${value.output.url}</pre></div>` | |||
})}</div>` | |||
modalDialogCustom.alert(`Published ${contract.name} Metadata`, yo`<span>Metadata of ${contract.name.toLowerCase()} contract was published successfully.<br> <pre>${result}</pre> </span>`) | |||
modalDialogCustom.alert(`Published "${contract.name}" Metadata`, yo`<span>Metadata of ${contract.name.toLowerCase()} was published successfully.<br> <pre>${result}</pre> </span>`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry but could you please also add ""s to contract name in the text?
Metadata of "ballot" was.....
0a95392
to
393695f
Compare
Fixed https://github.com/ethereum/remix-ide/issues/2549