Skip to content

Commit

Permalink
Add Hardware Failure Notice
Browse files Browse the repository at this point in the history
  • Loading branch information
noroadsleft committed Aug 10, 2023
1 parent add9ac6 commit d586ed9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/components/StatusBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
<span class="version-num">v{{ version }}</span>
</div>
</div>
<div class="standing-notice">
Compile jobs are currently disabled due to a hardware failure.
</div>
<div class="bes-title">
<div class="bes-status">
<div class="bes-status-left" :class="currentStatusClass">
Expand Down
7 changes: 6 additions & 1 deletion src/scss/status-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
top: 0;
left: 0;
width: 100%;
grid-template: 1fr / 5% [qmk-branding] 2fr [server-status] 2fr [bes-discord] 1fr [controls] 1fr 5%;
grid-template: 1fr / 5% [qmk-branding] 2fr [standing-notice] 3fr [server-status] 2fr [bes-discord] 2fr [controls] 1fr 5%;
align-items: center;
font-size: 16px;
line-height: 2.5;
Expand Down Expand Up @@ -120,3 +120,8 @@
font-size: 14px;
cursor: pointer;
}

.standing-notice {
color: #ff7373;
font-weight: bold;
}
2 changes: 1 addition & 1 deletion src/store/modules/app/mutations.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { PREVIEW_LABEL } from '@/store/modules/constants';

const mutations = {
enableCompile(state) {
state.compileDisabled = false;
state.compileDisabled = true;
},
disableCompile(state) {
state.compileDisabled = true;
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/app/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const state = {
layout: '',
layouts: {},
keymapName: '',
compileDisabled: false,
compileDisabled: true,
isPreview: false,
previewRequested: false,
jobID: '',
Expand Down

0 comments on commit d586ed9

Please sign in to comment.