Skip to content

Commit

Permalink
Bot state visualizer now defaults to JSON viewer.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyanziano committed Apr 24, 2019
1 parent 6e374d6 commit 6da723d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions packages/extensions/botState/bf-extension.json
Expand Up @@ -20,25 +20,25 @@
],
"accessories": [
{
"id": "graph",
"id": "json",
"states": {
"default": {
"label": "Graph"
"label": "Json"
},
"selected": {
"label": "Graph",
"label": "Json",
"aria-selected": true
}
}
},
{
"id": "json",
"id": "graph",
"states": {
"default": {
"label": "Json"
"label": "Graph"
},
"selected": {
"label": "Json",
"label": "Graph",
"aria-selected": true
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/extensions/botState/src/WindowHostReceiver.ts
Expand Up @@ -49,7 +49,7 @@ export class WindowHostReceiver {
const { visualizer } = this;
visualizer.isDiff = data.valueType === ValueTypes.Diff;
visualizer.dataProvider = data.value;
this.accessoryClick(visualizer.viewState || ViewState.Graph);
this.accessoryClick(visualizer.viewState || ViewState.Json);
}

@IpcHandler('theme')
Expand Down

0 comments on commit 6da723d

Please sign in to comment.