Skip to content

Commit 64b56aa

Browse files
authored
Merge pull request #44 from GalaxyPay/dev
showNetworks setting
2 parents 00d7b67 + 47ad617 commit 64b56aa

File tree

11 files changed

+34
-9
lines changed

11 files changed

+34
-9
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,5 +266,5 @@ jobs:
266266
uses: ncipollo/release-action@v1
267267
with:
268268
allowUpdates: true
269-
tag: v3.0.2
269+
tag: v3.0.3
270270
artifacts: "Output/*"

FUNC.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "FUNC"
5-
#define MyAppVersion "3.0.2"
5+
#define MyAppVersion "3.0.3"
66
#define MyAppPublisher "Galaxy Pay, LLC"
77
#define MyAppPublisherURL "https://galaxy-pay.com"
88
#define MyPublishPath "publish"

create-package-deb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
rm -r Output
22

3-
PKG=Output/func_3.0.2_linux-$1
3+
PKG=Output/func_3.0.3_linux-$1
44

55
mkdir -p $PKG/lib/systemd/system
66
mkdir -p $PKG/opt/func

create-package-pkg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ pkgbuild --root publish \
55
--install-location /opt/func \
66
--scripts pkg/scripts \
77
--identifier func.app \
8-
Output/func_3.0.2_darwin-$1.pkg
8+
Output/func_3.0.3_darwin-$1.pkg

deb/amd64/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: func
2-
Version: 3.0.2
2+
Version: 3.0.3
33
Section: base
44
Priority: optional
55
Architecture: amd64

deb/arm64/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: func
2-
Version: 3.0.2
2+
Version: 3.0.3
33
Section: base
44
Priority: optional
55
Architecture: arm64

webui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "func-webui",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"scripts": {
55
"dev": "vite",
66
"build": "vite build",

webui/src/components/NodeTabs.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
>
77
<v-card>
88
<v-tabs
9+
v-if="store.showNetworks"
910
:model-value="tab"
1011
color="primary"
1112
@update:model-value="setNetwork"

webui/src/components/Participation.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@
8686
</span>
8787
</v-col>
8888
<v-col class="text-subtitle-1">
89-
Blocks Proposed:
89+
Blocks Created:
9090
<span class="font-weight-bold">
9191
{{ partStats[item.address]?.proposals.toLocaleString() }}
9292
</span>
9393
</v-col>
9494
<v-col class="text-subtitle-1">
95-
Blocks Voted:
95+
Blocks Certified:
9696
<span class="font-weight-bold">
9797
{{ partStats[item.address]?.votes.toLocaleString() }}
9898
</span>

webui/src/components/Settings.vue

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@
3131
<Releases class="ml-2" @release="updateRelease" />
3232
</v-col>
3333
</v-row>
34+
<v-row align="center">
35+
<v-col>
36+
<div>Show Alternative Networks</div>
37+
</v-col>
38+
<v-col>
39+
<v-switch
40+
v-model="store.showNetworks"
41+
class="d-flex"
42+
style="justify-content: right"
43+
color="primary"
44+
@click.prevent="setShowNetworks(!store.showNetworks)"
45+
/>
46+
</v-col>
47+
</v-row>
3448
</v-container>
3549
</v-card>
3650
</v-dialog>
@@ -39,11 +53,13 @@
3953
<script lang="ts" setup>
4054
import FUNC from "@/services/api";
4155
import { mdiClose } from "@mdi/js";
56+
import { NetworkId, useWallet } from "@txnlab/use-wallet-vue";
4257
4358
const props = defineProps({ visible: { type: Boolean, required: true } });
4459
const emit = defineEmits(["close"]);
4560
4661
const store = useAppStore();
62+
const { activeNetwork, setActiveNetwork } = useWallet();
4763
4864
const show = computed({
4965
get() {
@@ -59,6 +75,7 @@ const show = computed({
5975
let init = false;
6076
6177
onBeforeMount(() => {
78+
if (activeNetwork.value !== "mainnet") setShowNetworks(true);
6279
getVersion();
6380
});
6481
@@ -107,4 +124,10 @@ async function updateRelease(release: string) {
107124
store.stopNodeServices = false;
108125
store.downloading = false;
109126
}
127+
128+
async function setShowNetworks(val: boolean) {
129+
store.showNetworks = val;
130+
localStorage.setItem("showNetworks", val.toString());
131+
if (!val) setActiveNetwork("mainnet" as NetworkId);
132+
}
110133
</script>

0 commit comments

Comments
 (0)