-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add mpc theme, refact: variables.scss #1344
feat: add mpc theme, refact: variables.scss #1344
Conversation
7880aef
to
684dfe1
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1344 +/- ##
==========================================
- Coverage 66.00% 66.00% -0.01%
==========================================
Files 194 194
Lines 20528 20589 +61
Branches 4455 4472 +17
==========================================
+ Hits 13550 13590 +40
- Misses 6978 6999 +21 ☔ View full report in Codecov by Sentry. |
// Picking the first category in the case of multi-protocol(zigbee/matter) | ||
if (Array.isArray(zclProps) && zclProps.length > 0) { | ||
return zclProps[0].category | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't if (Array.isArray(zclProps) && zclProps.length > 0) { return zclProps[0].category }
and if (this.$store.state.zap.isMultiConfig) { return 'multiprotocol' }
the same?
// Picking the first category in the case of multi-protocol(zigbee/matter) | ||
if (Array.isArray(zclProps) && zclProps.length > 0) { | ||
return zclProps[0].category | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't if (Array.isArray(zclProps) && zclProps.length > 0) { return zclProps[0].category }
and if (this.$store.state.zap.isMultiConfig) { return 'multiprotocol' }
the same?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this all be something like
if (this.$store.state.zap.isMultiConfig) { return 'multiprotocol' } else { return this.$store.state.zap.selectedZapConfig?.zclProperties.category }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think no, because if user choose two zigbee or two matter categories (if it is possible) they are not multiprotocol but zclProperties is an arrray. if it is not possible, you are right.
dc3d954
to
2594e50
Compare
No description provided.