Skip to content

Commit

Permalink
include error count in button, fix watch
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed May 23, 2021
1 parent e4e744f commit bc3f0bd
Show file tree
Hide file tree
Showing 2 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
Expand Up @@ -43,7 +43,7 @@
"test": "jest --coverage",
"watch": "run-p watch:src watch:labextension",
"watch:labextension": "jupyter labextension watch .",
"watch:src": "tsc -w"
"watch:src": "jlpm build:lib -w"
},
"dependencies": {
"@jupyterlab/application": "^3.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/notebookButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class TourButton extends ReactWidget {
const errors = this._manager.getNotebookValidationErrors(this._notebook);

if (errors.length) {
title = this.translator.__('Errors');
title = `${this.translator.__('Tour Validation Errors')}: ${errors.length}`;
icon = errorTourIcon;
}

Expand All @@ -99,7 +99,7 @@ export class TourButton extends ReactWidget {
{tourIds.length ? (
<option value="ALL">{trans.__('Run all Tours')}</option>
) : (
<option>{trans.__('No Tours found in this Notebook')}</option>
<optgroup label={trans.__('No Tours found in this Notebook')}></optgroup>
)}
{tourIds.length ? (
<optgroup label={trans.__('Notebook Tours')}>
Expand Down

0 comments on commit bc3f0bd

Please sign in to comment.