Skip to content

Commit

Permalink
*#4546 Remove redundant dashboard tab options
Browse files Browse the repository at this point in the history
  • Loading branch information
stroomdev66 committed Oct 21, 2024
1 parent 3a845aa commit e72d2d7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,15 @@ private List<Item> updateMenuItems(final TabLayoutConfig tabLayoutConfig,

// Create duplicate menus.
menuItems.add(createDuplicateMenu(tabLayoutConfig, tabConfig));
menuItems.add(createDuplicateTabPanelMenu(tabLayoutConfig));
if (tabLayoutConfig.getAllTabCount() > 1) {
menuItems.add(createDuplicateTabPanelMenu(tabLayoutConfig));
}

// Create remove menus.
menuItems.add(createRemoveMenu(tabLayoutConfig, tabConfig));
menuItems.add(createRemoveTabPanel(tabLayoutConfig));
if (tabLayoutConfig.getAllTabCount() > 1) {
menuItems.add(createRemoveTabPanel(tabLayoutConfig));
}

return menuItems;
}
Expand Down
24 changes: 24 additions & 0 deletions unreleased_changes/20241021_142140_309__4546.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
* Issue **#4546** : Remove redundant dashboard tab options.


```sh
# ********************************************************************************
# Issue title: Remove the `Remove All` and `Duplicate All` dashboard tab options where the user has a single tab
# Issue link: https://github.com/gchq/stroom/issues/4546
# ********************************************************************************

# ONLY the top line will be included as a change entry in the CHANGELOG.
# The entry should be in GitHub flavour markdown and should be written on a SINGLE
# line with no hard breaks. You can have multiple change files for a single GitHub issue.
# The entry should be written in the imperative mood, i.e. 'Fix nasty bug' rather than
# 'Fixed nasty bug'.
#
# Examples of acceptable entries are:
#
#
# * Issue **123** : Fix bug with an associated GitHub issue in this repository
#
# * Issue **namespace/other-repo#456** : Fix bug with an associated GitHub issue in another repository
#
# * Fix bug with no associated GitHub issue.
```

0 comments on commit e72d2d7

Please sign in to comment.