@intuitionrobotics/bug-report
Version:
40 lines • 2.12 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Dialog_JiraOpened = void 0;
const DialogModule_1 = require("@intuitionrobotics/thunderstorm/app-frontend/modules/dialog/DialogModule");
const BaseComponent_1 = require("@intuitionrobotics/thunderstorm/app-frontend/core/BaseComponent");
const React = require("react");
class Dialog_JiraOpened extends BaseComponent_1.BaseComponent {
constructor(props) {
super(props);
this.redirectToJira = () => {
if (this.props.url)
window.open(this.props.url);
};
}
static show(url) {
new DialogModule_1.Dialog_Builder(React.createElement(Dialog_JiraOpened, { url: url }))
.setAllowIndirectClosing(true)
.show();
}
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"))));
}
}
exports.Dialog_JiraOpened = Dialog_JiraOpened;
//# sourceMappingURL=Dialog_JiraOpened.js.map