blob: b031773019516707936863ce3377087711bcfbfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import React from 'react'
import { Button } from 'react-bootstrap'
import { exportSchema } from './requests'
class DownloadExport extends React.Component {
constructor (props, context) {
super(props, context)
this.download = this.download.bind(this)
}
download() {
setTimeout(() => {
const response = {
file: exportSchema(this.props.schemaVersion),
};
window.open(response.file);
}, 100);
}
render() {
return (
<Button onClick={this.download}>Download as XMI</Button>
);
}
}
export default DownloadExport
|