@intuitionrobotics/bug-report
Version:
36 lines • 1.91 kB
JavaScript
import { Dialog_Builder } from "@intuitionrobotics/thunderstorm/app-frontend/modules/dialog/DialogModule";
import { BaseComponent } from "@intuitionrobotics/thunderstorm/app-frontend/core/BaseComponent";
import * as React from "react";
export class Dialog_JiraOpened extends BaseComponent {
constructor(props) {
super(props);
}
static show(url) {
new Dialog_Builder(React.createElement(Dialog_JiraOpened, { url: url }))
.setAllowIndirectClosing(true)
.show();
}
redirectToJira = () => {
if (this.props.url)
window.open(this.props.url);
};
render() {
return React.createElement("div", { className: 'll_v_s fill', style: { width: 344 } },
React.createElement("div", { className: 'll_v_s', style: { flex: 1, position: 'relative' } },
React.createElement("div", { style: { textAlign: 'center', padding: '10px', fontSize: '16px', color: 'darkslategray' } }, "Success"),
React.createElement("div", { style: { textAlign: 'center', padding: '5px', fontSize: '14px', color: 'darkslategray' } }, "Bug report submitted successfully"),
React.createElement("div", { style: { position: 'relative', height: '40px' } },
React.createElement("div", { className: 'clickable ll_h_c', style: {
background: 'DeepSkyBlue',
height: 32,
paddingRight: 10,
paddingLeft: 10,
borderRadius: 16,
fontSize: '14px',
color: 'darkslategray',
position: "absolute",
right: '35%'
}, onClick: () => this.redirectToJira() }, "Take me to jira"))));
}
}
//# sourceMappingURL=Dialog_JiraOpened.js.map