diff --git a/scoop-viewer.py b/scoop-viewer.py index f0b23b3..661344c 100644 --- a/scoop-viewer.py +++ b/scoop-viewer.py @@ -25,7 +25,7 @@ def __init__(self, *args, **kw): sizer = wx.BoxSizer(wx.VERTICAL) self.browser = wx.html2.WebView.New(self) - self.browser.EnableContextMenu(True) + self.browser.EnableContextMenu(False) self.browser.Bind(wx.html2.EVT_WEBVIEW_NEWWINDOW, Viewer.handle_new_window) sizer.Add(self.browser, 1, wx.EXPAND, 10) diff --git a/tests/test.py b/tests/test.py index 48f87a3..8d377f9 100644 --- a/tests/test.py +++ b/tests/test.py @@ -66,7 +66,7 @@ def test_install(self): wait = ui.WebDriverWait(driver,10) wait.until(lambda driver: "Loading" not in driver.page_source) - elem = driver.find_element_by_css_selector("#app > div > div > div > div.col-sm-9 > div > div > div:nth-child(1) > div.col-sm-2.text-right > button") + elem = driver.find_element_by_css_selector("#app > div > div > div > main.col-sm-9 > div > div > div:nth-child(1) > div.col-sm-2.text-right > button") elem.click() wait.until(lambda driver: "Installed" in driver.page_source) assert "Installed" in driver.page_source diff --git a/webapp/frontend/app.jsx b/webapp/frontend/app.jsx index d3ef1ab..f59a4bf 100644 --- a/webapp/frontend/app.jsx +++ b/webapp/frontend/app.jsx @@ -2,7 +2,7 @@ import React from 'react'; import ReactDOM from 'react-dom'; import BucketsList from './components/buckets-list'; import BucketContainer from './components/bucket-container'; -import Menu from './components/menu'; +import Header from './components/header'; class App extends React.Component { constructor(props) { @@ -26,7 +26,6 @@ class App extends React.Component { this.setState({query: newQuery}); } - //
render() { return (
@@ -36,7 +35,7 @@ class App extends React.Component {
- +
diff --git a/webapp/frontend/components/bucket-content.js b/webapp/frontend/components/bucket-content.js index 057d8ea..83ca65d 100644 --- a/webapp/frontend/components/bucket-content.js +++ b/webapp/frontend/components/bucket-content.js @@ -7,7 +7,7 @@ const BucketContent = (props) => { return () }); return ( -
+
{content}
) diff --git a/webapp/frontend/components/menu.js b/webapp/frontend/components/header.js similarity index 85% rename from webapp/frontend/components/menu.js rename to webapp/frontend/components/header.js index 9b31455..1b38fe4 100644 --- a/webapp/frontend/components/menu.js +++ b/webapp/frontend/components/header.js @@ -1,13 +1,12 @@ import React from 'react'; import SearchBox from './search-box'; -const Menu = (props) => { - //fixed-top +const Header = (props) => { return (