Skip to content

Commit

Permalink
GUI_fix (#1313)
Browse files Browse the repository at this point in the history
* fixing matter gui bug
  • Loading branch information
paulr34 authored May 1, 2024
1 parent c223cc5 commit 666004e
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions src/components/ZclDomainClusterView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ limitations under the License.
class="v-step-9"
:color="isClusterEnabled(props.row.id) ? 'primary' : 'grey'"
dense
:disable="!isClusterEnabled(props.row.id)"
:disable="
!isClusterEnabled(props.row.id) ||
(this.enableServerOnly &&
this.getClusterEnabledStatus(props.row.id) === 'Client')
"
icon="o_settings"
@click="selectCluster(props.row)"
to="/cluster"
Expand Down Expand Up @@ -233,21 +237,6 @@ export default {
props: ['domainName', 'clusters'],
mixins: [CommonMixin, uiOptions],
computed: {
clusterSelectionOptions() {
if (this.enableServerOnly) {
return [
{ label: 'Not Enabled', client: false, server: false },
{ label: 'Server', client: false, server: true },
]
} else {
return [
{ label: 'Not Enabled', client: false, server: false },
{ label: 'Client', client: true, server: false },
{ label: 'Server', client: false, server: true },
{ label: 'Client & Server', client: true, server: true },
]
}
},
showStatus: {
get() {
return !this.$store.state.zap.standalone
Expand Down Expand Up @@ -540,6 +529,12 @@ export default {
ZclClusterRole,
showEnableAllClustersDialog: false,
uc_label: 'uc label',
clusterSelectionOptions: [
{ label: 'Not Enabled', client: false, server: false },
{ label: 'Client', client: true, server: false },
{ label: 'Server', client: false, server: true },
{ label: 'Client & Server', client: true, server: true },
],
columns: [
{
name: 'status',
Expand Down

0 comments on commit 666004e

Please sign in to comment.