Skip to content

Commit

Permalink
FIX: OneClickInstallation network issue (#1138)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoPlays authored Mar 16, 2023
1 parent 1aaaff4 commit a4c7761
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions launcher/src/components/UI/plugin-installation/NetworkSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div v-if="show" class="listBox">
<div class="selectBox_list w-full divide-y-2 divide-gray-400">
<div
v-for="(state, i) in list"
v-for="(state, i) in networks"
:key="i"
class="selectBox_item w-full flex justify-center items-center bg-slate-600 py-2 hover:bg-slate-700 text-slate-100 px-20"
@click="selectNetwork(state.name)"
Expand Down Expand Up @@ -69,20 +69,6 @@ export default {
icon: "",
},
show: false,
list: [
{
name: "mainnet",
icon: "/img/icon/click-installation/mainnet-icon.png",
},
{
name: "testnet",
icon: "/img/icon/click-installation/testnet-icon.png",
},
{
name: "gnosis",
icon: "/img/icon/click-installation/gnosis_mainnet_icon.png",
},
],
};
},

Expand All @@ -108,7 +94,7 @@ export default {
selectItemToInstall: async function (item) {
const constellation = await ControlService.getOneClickConstellation({
setup: item.name,
network: this.selectedNetworkName,
network: this.currentNetwork.name,
});
let includedPlugins = this.allServices.filter((service) => constellation.includes(service.service));
if (
Expand All @@ -130,7 +116,8 @@ export default {
this.show = !this.show;
},
selectNetwork(name) {
this.currentNetwork = this.list.find((item) => item.name === name);
this.currentNetwork = this.networks.find((item) => item.name === name);
this.selectedNetwork = this.currentNetwork
this.show = false;
},
},
Expand Down

0 comments on commit a4c7761

Please sign in to comment.