Skip to content

Commit d693709

Browse files
authored
FIX: Update stereum btn (#701)
1 parent d0ef517 commit d693709

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

launcher/src/components/UI/node-header/UpdatePanel.vue

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,18 @@
3535
<div class="searchBtn">
3636
<img src="/img/icon/header-icons/search.png" alt="icon" />
3737
</div>
38-
<div class="downloadBtn" :class="{disabled:checkStereumUpdate}" @click="$emit('runUpdate', stereumUpdate)">
38+
<div
39+
class="downloadBtn"
40+
:class="{ disabled: !checkStereumUpdate }"
41+
@click="$emit('runUpdate', stereumUpdate)"
42+
>
3943
<img
4044
src="/img/icon/node-journal-icons/download2.png"
4145
alt="icon"
4246
/>
4347
</div>
4448

4549
<div v-if="checkStereumUpdate()" class="available">
46-
4750
<div class="updateIcon">
4851
<img src="/img/icon/header-icons/update-green.png" alt="icon" />
4952
</div>
@@ -148,7 +151,9 @@ export default {
148151
if (this.stereumUpdate && this.stereumUpdate.version) {
149152
// console.log(this.stereumUpdate.commit) // commit hash of the newest newest release tag
150153
// console.log(this.stereumUpdate.current_commit) // current installed commit on the os
151-
return this.stereumUpdate.commit != this.stereumUpdate.current_commit ? true : false;
154+
return this.stereumUpdate.commit != this.stereumUpdate.current_commit
155+
? true
156+
: false;
152157
}
153158
return false;
154159
},
@@ -302,8 +307,8 @@ export default {
302307
height: 100%;
303308
grid-column: 2/3;
304309
grid-row: 2/3;
305-
font-size: 0.7rem;
306-
font-weight: 600;
310+
font-size: 0.6rem;
311+
font-weight: 500;
307312
text-transform: uppercase;
308313
color: #b4b443;
309314
justify-self: flex-start;
@@ -318,8 +323,8 @@ export default {
318323
}
319324
#currentValue span,
320325
#latestValue span {
321-
font-size: 0.7rem;
322-
font-weight: 600;
326+
font-size: 0.6rem;
327+
font-weight: 500;
323328
text-transform: uppercase;
324329
color: #b4b443;
325330
justify-self: center;
@@ -442,6 +447,7 @@ export default {
442447
.btnBox .available .availableText {
443448
grid-column: 2/7;
444449
grid-row: 1;
450+
width: max-content;
445451
margin: 0 auto 0 8px;
446452
font-size: 0.6rem;
447453
font-weight: 600;
@@ -687,7 +693,7 @@ export default {
687693
margin-right: 5px;
688694
}
689695
690-
.disabled{
696+
.disabled {
691697
pointer-events: none;
692698
background-color: #074634 !important;
693699
opacity: 0.5;

0 commit comments

Comments
 (0)