aboutsummaryrefslogtreecommitdiffstats
path: root/webui
diff options
context:
space:
mode:
Diffstat (limited to 'webui')
-rw-r--r--webui/src/pages/bug/labels/LabelMenu.tsx28
1 files changed, 14 insertions, 14 deletions
diff --git a/webui/src/pages/bug/labels/LabelMenu.tsx b/webui/src/pages/bug/labels/LabelMenu.tsx
index 8213d15b..2422e865 100644
--- a/webui/src/pages/bug/labels/LabelMenu.tsx
+++ b/webui/src/pages/bug/labels/LabelMenu.tsx
@@ -168,6 +168,20 @@ function FilterDropdown({
label={`Filter ${children}`}
/>
)}
+ {filter !== '' &&
+ dropdown.filter((d) => d[1].toLowerCase() === filter.toLowerCase())
+ .length <= 0 && (
+ <MenuItem
+ style={{ whiteSpace: 'normal', wordBreak: 'break-all' }}
+ onClick={() => {
+ onNewItem(filter);
+ setFilter('');
+ setOpen(false);
+ }}
+ >
+ Create new label '{filter}'
+ </MenuItem>
+ )}
{dropdown
.sort(function (x, y) {
// true values first
@@ -193,20 +207,6 @@ function FilterDropdown({
</div>
</MenuItem>
))}
- {filter !== '' &&
- dropdown.filter((d) => d[1].toLowerCase() === filter.toLowerCase())
- .length <= 0 && (
- <MenuItem
- style={{ whiteSpace: 'normal', wordBreak: 'break-all' }}
- onClick={() => {
- onNewItem(filter);
- setFilter('');
- setOpen(false);
- }}
- >
- Create new label '{filter}'
- </MenuItem>
- )}
</Menu>
</>
);