Skip to content

Commit

Permalink
disable run widjet button if agent is not online
Browse files Browse the repository at this point in the history
  • Loading branch information
pavyarov authored and pavyarov committed Apr 29, 2020
1 parent c9701ea commit 444b1ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@drill4j/browser-extension",
"version": "0.3.5",
"version": "0.3.7",
"license": "Apache-2.0",
"scripts": {
"build": "NODE_ENV=production webpack",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Drill4J Browser Extension",
"version": "0.3.5",
"version": "0.3.7",
"background": {
"page": "background.html"
},
Expand Down
2 changes: 1 addition & 1 deletion src/popup-script/pages/main-page/main-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const MainPage = withConfigs(mainPage(({ className, configs: { drillAdmin
<Content>
<div>Drill4J web widget allows you to record your test sessions and see test coverage results in real time.</div>
<ActionsPanel>
<Button type="primary" size="large" onClick={() => browser.storage.local.set({ active: !active })}>
<Button type="primary" size="large" onClick={() => browser.storage.local.set({ active: !active })} disabled={!active && status !== 'ONLINE'}>
{active ? 'Close widget' : 'Run widget'}
</Button>
<Button type="secondary" size="large" onClick={() => browser.runtime.openOptionsPage()}>
Expand Down

0 comments on commit 444b1ee

Please sign in to comment.