Skip to content

Commit

Permalink
FIX: sync status error alarm (#1893)
Browse files Browse the repository at this point in the history
fix #1889
  • Loading branch information
mabasian authored May 24, 2024
1 parent 58247d4 commit 33b5aeb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 24 deletions.
15 changes: 0 additions & 15 deletions launcher/public/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -1523,10 +1523,6 @@ video {
margin-top: 2rem;
}

.mt-0{
margin-top: 0px;
}

.box-border{
-webkit-box-sizing: border-box;
box-sizing: border-box;
Expand Down Expand Up @@ -2765,12 +2761,6 @@ video {
margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}

.space-y-3 > :not([hidden]) ~ :not([hidden]){
--tw-space-y-reverse: 0;
margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.divide-x > :not([hidden]) ~ :not([hidden]){
--tw-divide-x-reverse: 0;
border-right-width: calc(1px * var(--tw-divide-x-reverse));
Expand Down Expand Up @@ -3891,11 +3881,6 @@ video {
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

.bg-\[\#3a3d40\]{
--tw-bg-opacity: 1;
background-color: rgb(58 61 64 / var(--tw-bg-opacity));
}

.bg-opacity-80{
--tw-bg-opacity: 0.8;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</div>
</router-link>

<router-link v-if="synchronizationError" to="/control" class="status-message_red">
<router-link v-if="synchronizationErrorControl" to="/control" class="status-message_red">
<div class="message-icon">
<img src="/img/icon/node-alert-icons/alert-sync-error.gif" alt="warn_storage" />
</div>
Expand Down Expand Up @@ -206,7 +206,7 @@ export default {
availDisk: "availDisk",
usedPerc: "usedPerc",
cpu: "cpu",
synchronizationError: "synchronizationError",
synchronizationErrorControl: "synchronizationErrorControl",
}),
...mapWritableState(useNodeHeader, {
stereumUpdate: "stereumUpdate",
Expand Down
4 changes: 2 additions & 2 deletions launcher/src/components/UI/the-control/ControlAlert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
</div>
</div>
<div
v-if="synchronizationError"
v-if="synchronizationErrorControl"
class="alert-message_red"
@mouseenter="cursorLocation = ` ${sync}`"
@mouseleave="cursorLocation = ''"
Expand Down Expand Up @@ -219,7 +219,7 @@ export default {
availDisk: "availDisk",
usedPerc: "usedPerc",
cpu: "cpu",
synchronizationError: "synchronizationError",
synchronizationErrorControl: "synchronizationErrorControl",
}),
...mapWritableState(useNodeHeader, {
displayUpdatePanel: "displayUpdatePanel",
Expand Down
10 changes: 5 additions & 5 deletions launcher/src/components/UI/the-control/SyncStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default {
...mapWritableState(useControlStore, {
consensusName: "consensusName",
pageNumber: "pageNumber",
synchronizationError: "synchronizationError",
synchronizationErrorControl: "synchronizationErrorControl",
currentConsensusIcon: "currentConsensusIcon",
currentExecutionIcon: "currentExecutionIcon",
}),
Expand Down Expand Up @@ -243,18 +243,18 @@ export default {
},
syncSituation() {
if (this.syncIcoError) {
this.synchronizationError = true;
this.synchronizationErrorControl = true;
return this.errorIco;
}
if (this.syncIcoUnknown) {
this.synchronizationError = false;
this.synchronizationErrorControl = false;
return this.unknownIco;
}
if (this.syncIcoSituation) {
this.synchronizationError = false;
this.synchronizationErrorControl = false;
return this.activeIco;
}
this.synchronizationError = false;
this.synchronizationErrorControl = false;
return this.synchedIco;
},
refresh(instant = false, loadPage = "") {
Expand Down
1 change: 1 addition & 0 deletions launcher/src/store/theControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const useControlStore = defineStore("theControl", {
currentConsensusIcon: "",
currentExecutionIcon: "",
synchronizationError: false,
synchronizationErrorControl: false,
pageNumber: 1,
consensusName: "",
request: [],
Expand Down

0 comments on commit 33b5aeb

Please sign in to comment.