Skip to content

Commit

Permalink
excluding global lists from the GUI (project-chip#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulr34 authored Mar 19, 2024
1 parent 39e7ab5 commit aaf8894
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/ZclAttributeManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ limitations under the License.
separator="horizontal"
>
<template v-slot:body="props">
<q-tr :props="props" class="table_body">
<q-tr
:props="props"
class="table_body"
v-if="!globalLists.includes(props.row.label)"
>
<q-td
key="status"
:props="props"
Expand Down Expand Up @@ -236,10 +240,11 @@ import restApi from '../../src-shared/rest-api.js'
//This mixin derives from common-mixin.
import EditableAttributeMixin from '../util/editable-attributes-mixin'
import uiOptions from '../util/ui-options'
export default {
name: 'ZclAttributeManager',
mixins: [EditableAttributeMixin],
mixins: [EditableAttributeMixin, uiOptions],
methods: {
//retrieve list of cluster and attribute pairs that should be forced External Storage
loadForcedExternal(packages) {
Expand Down
6 changes: 6 additions & 0 deletions src/util/ui-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ export default {
enableServerOnly: false,
enableSingleton: false,
enableBounded: false,
globalLists: [
'EventList',
'AttributeList',
'GeneratedCommandList',
'AcceptedCommandList',
],
}
},
mounted() {
Expand Down

0 comments on commit aaf8894

Please sign in to comment.