Commit c0109dbd authored by Laurent Wouters's avatar Laurent Wouters
Browse files

[fix] Fixed sidebar toggle

parent 3a856b1adac2
......@@ -102,10 +102,7 @@ class Popup extends React.Component<{}, State> {
}
onToggleSidebar() {
chrome.sidebarAction.isOpen({}).then((isOpen: boolean) => {
if (isOpen) chrome.sidebarAction.close();
else chrome.sidebarAction.open();
});
chrome.sidebarAction.open();
}
onTunOff() {
......
......@@ -132,7 +132,7 @@ class Sidebar extends React.Component<{}, State> {
values: [DocumentObservations, ResourceData, definition.ViewRegistry]
) => {
let observations = values[0];
if (observations.status != DocumentStatus.off) {
if (observations.status == DocumentStatus.active) {
let data = values[1];
if (data == null) {
// wait till we have data
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment