Skip to content

Commit

Permalink
ADD: ReconnectAnimation
Browse files Browse the repository at this point in the history
Added animation to ReconnectModal
  • Loading branch information
PatrickRL committed Jan 10, 2024
1 parent 72ea7c4 commit 10e66af
Show file tree
Hide file tree
Showing 23 changed files with 39 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions launcher/src/components/UI/node-header/IconsNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export default {
osUpdating: "osUpdating",
searchingForOsUpdates: "searchingForOsUpdates",
refresh: "refresh",
reconnecting: "reconnecting",
stereumUpdate: "stereumUpdate",
tutorial: "tutorial",
stakeGuide: "stakeGuide",
Expand Down Expand Up @@ -229,7 +230,9 @@ export default {
},
async reconnect() {
console.log("reconnecting");
this.reconnecting = true;
await ControlService.reconnect();
this.reconnecting = false;
this.refresh = true;
},
updateModalHandler() {
Expand Down
20 changes: 18 additions & 2 deletions launcher/src/components/UI/node-header/ReconnectModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@
<div class="title-box">
<span>{{ $t("reconnectModal.reconnectTitle") }}</span>
</div>
<div class="messageContent">
<div v-if="!reconnecting" class="messageContent">
<img src="/img/icon/manage-node-icons/stereum_cant_connect.gif"/>
<span class="message">{{ $t("reconnectModal.reconnectMessage") }}</span>
</div>
<div v-if="reconnecting" class="messageContent">
<img v-if="reconnecting" src="/img/icon/manage-node-icons/stereum_connected.gif"/>
<span class="message">{{ $t("reconnectModal.reconnectingMessage") }}</span>
</div>
<div class="confirmBtn">
<div class="confirmBox" @click="$emit('confirmReconnect')">
<span>{{ $t("reconnectModal.reconnectBtn") }}</span>
Expand All @@ -21,7 +26,18 @@
</div>
</div>
</template>
<script></script>
<script>
import { mapWritableState } from "pinia";
import { useNodeHeader } from "../../../store/nodeHeader";
export default {
computed: {
...mapWritableState(useNodeHeader, {
reconnecting: "reconnecting",
}),
},
}
</script>
<style scoped>
.reconnect-modal-parent {
width: 100%;
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/mn.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/sr.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/languages/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
"reconnectModal": {
"reconnectTitle": "Connection lost",
"reconnectMessage": "Check your connection and try again.",
"reconnectingMessage": "Reconnecting...",
"reconnectBtn": "Reconnect"
},
"prunningModal": {
Expand Down

0 comments on commit 10e66af

Please sign in to comment.