Skip to content

Commit

Permalink
Remove 'comment' button from default toolbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoldowsky committed Jul 10, 2024
1 parent 270ef60 commit 4fc13c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/functional/tile_tests/geometry_tool_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,16 @@ context('Geometry Tool', function () {
// Label the polygon
geometryToolTile.getGraphPolygon().click(50, 50, { force: true, });
geometryToolTile.getSelectedGraphPoint().should('have.length', 3);
geometryToolTile.getGraphPointLabel().contains('12.5').should('not.exist');
geometryToolTile.getGraphPointLabel().contains('12.').should('not.exist');
geometryToolTile.getGraphPointLabel().contains('ABC').should('not.exist');
clueCanvas.clickToolbarButton('geometry', 'label');
geometryToolTile.getModalTitle().should('contain.text', 'Polygon Label/Value');
geometryToolTile.chooseLabelOption('length');
geometryToolTile.getGraphPointLabel().contains('12.5').should('exist');
geometryToolTile.getGraphPointLabel().contains('12.').should('exist');
clueCanvas.clickToolbarButton('geometry', 'label');
geometryToolTile.getModalLabelInput().should('have.value', 'ABC');
geometryToolTile.chooseLabelOption('label');
geometryToolTile.getGraphPointLabel().contains('12.5').should('not.exist');
geometryToolTile.getGraphPointLabel().contains('12.').should('not.exist');
geometryToolTile.getGraphPointLabel().contains('ABC').should('exist');
clueCanvas.clickToolbarButton('geometry', 'label');
geometryToolTile.chooseLabelOption('none');
Expand Down
2 changes: 1 addition & 1 deletion docs/unit-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ Common toolbar framework. Default buttons:
- `upload`: allows uploading an image to display in the background
- `duplicate`: copies the currently selected objects
- `label`: opens dialog to choose the type of label for selected object
- `comment`: adds a label to the currently selected object
- `add-data`: link or unlink from a dataset
- `delete`: delete the currently selected objects

Available buttons not in default set:

- `comment`: adds a text callout to the currently selected object
- `movable-line`: creates a line that can be positioned

#### Graph
Expand Down
1 change: 0 additions & 1 deletion src/clue/app-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@
"upload",
"duplicate",
"label",
"comment",
"|",
"add-data",
"|",
Expand Down

0 comments on commit 4fc13c5

Please sign in to comment.