Skip to content

Commit 92c6820

Browse files
Simon-zhenfenghanzhenfeng
andauthored
#493: As a user, I want to share the diagram so that they can collaborate with me (#501)
1. when user click the button, browser will open a new window show the github survey page 2. regarding the implements: 2.1 I have to add an empty function for the share button, I don't know how to avoid that 2.2 I might need to change the share button position Co-authored-by: hanzhenfeng <[email protected]>
1 parent e6e1e53 commit 92c6820

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/components/ContentWrap.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,8 @@ export default class ContentWrap extends Component {
765765
this.cm.js.setValue(codeService.addCode(code, param));
766766
}
767767

768+
gotoShareSurvey() {}
769+
768770
render() {
769771
return (
770772
<SplitPane
@@ -1002,6 +1004,16 @@ export default class ContentWrap extends Component {
10021004
{window.zenumlDesktop ? (null) : (
10031005
<div className='promotion'>
10041006
<div className="downloads">
1007+
<a href='https://github.com/ZenUml/web-sequence/discussions/496' target="_blank"
1008+
style={{textDecoration:'none'}}>
1009+
<Button
1010+
className="btn--dark button icon-button hint--rounded hint--bottom-left"
1011+
aria-label="Share Your Work"
1012+
onClick={this.gotoShareSurvey.bind()}>
1013+
<span className="material-symbols-outlined">share</span>
1014+
<span>Share</span>
1015+
</Button>
1016+
</a>
10051017
<Button
10061018
className="btn--dark button icon-button hint--rounded hint--bottom-left"
10071019
aria-label="Export as PNG"

0 commit comments

Comments
 (0)