Open Link button in the Repos Modal (#74)

* Add an Open Link button to the Repos Modal

* Forgot to swap back to online build in the bootstrapper.
pull/78/head
Oaddy 2 years ago committed by GitHub
parent b955143cc9
commit 537ec59274
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,6 +9,7 @@
"install": "Install",
"add": "Add",
"remove": "Remove",
"openLink": "Open Link",
"refresh": "Refresh",

@ -19,6 +19,21 @@ export default async () => {
render() {
//this.props._onRender(this);
return React.createElement('div', {},
React.createElement(Button, {
style: {
width: '100px',
position: 'absolute',
right: '108px',
marginTop: '33px'
},
color: ButtonClasses["colorPrimary"],
size: ButtonClasses["sizeSmall"],
onClick: this.props.buttonOpenLink
}, "#terms.openLink#"),
React.createElement(Button, {
style: {
width: '92px',
@ -163,6 +178,10 @@ export default async () => {
updateAfterChange();
},
buttonOpenLink: () => {
window.open(repo.url);
},
buttonOnClick: async () => {
goosemod.moduleStoreAPI.repos.splice(goosemod.moduleStoreAPI.repos.indexOf(repo), 1);

Loading…
Cancel
Save