-
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): smart start view improvements (#3684)
- Loading branch information
1 parent
0209b55
commit 425a817
Showing
16 changed files
with
770 additions
and
637 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<template> | ||
<v-alert | ||
max-width="600px" | ||
dense | ||
border="left" | ||
type="warning" | ||
v-if="missingKeys.length > 0" | ||
> | ||
Some security keys are missing: | ||
<strong>{{ missingKeys.join(', ') }}</strong | ||
>. Please check your Z-Wave settings. | ||
</v-alert> | ||
</template> | ||
|
||
<script> | ||
import { mapState } from 'pinia' | ||
import useBaseStore from '../../stores/base' | ||
export default { | ||
computed: { | ||
...mapState(useBaseStore, ['zwave']), | ||
missingKeys() { | ||
const keys = this.zwave.securityKeys || {} | ||
const requiredKeys = [ | ||
'S2_Unauthenticated', | ||
'S2_Authenticated', | ||
'S2_AccessControl', | ||
'S0_Legacy', | ||
] | ||
const missing = [] | ||
for (const key of requiredKeys) { | ||
if (!keys[key] || keys[key].length !== 32) { | ||
missing.push(key) | ||
} | ||
} | ||
return missing | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
<style></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.