chore: remove bright counter from sidebar tab selector
This commit is contained in:
parent
1074a765e4
commit
e9e1378083
|
|
@ -62,17 +62,8 @@ export const TabbedPane: React.FunctionComponent<{
|
||||||
setSelectedTab(tabs[e.currentTarget.selectedIndex].id);
|
setSelectedTab(tabs[e.currentTarget.selectedIndex].id);
|
||||||
}}>
|
}}>
|
||||||
{tabs.map(tab => {
|
{tabs.map(tab => {
|
||||||
let suffix = '';
|
return <option value={tab.id} selected={tab.id === selectedTab}>{tab.title}</option>;
|
||||||
if (tab.count === 1)
|
})}
|
||||||
suffix = ' 🔵';
|
|
||||||
else if (tab.count)
|
|
||||||
suffix = ` 🔵✖️${tab.count}`;
|
|
||||||
if (tab.errorCount === 1)
|
|
||||||
suffix = ` 🔴`;
|
|
||||||
else if (tab.errorCount)
|
|
||||||
suffix = ` 🔴✖️${tab.errorCount}`;
|
|
||||||
return <option value={tab.id} selected={tab.id === selectedTab}>{tab.title}{suffix}</option>;
|
|
||||||
})}
|
|
||||||
</select>
|
</select>
|
||||||
</div>}
|
</div>}
|
||||||
{rightToolbar && <div style={{ flex: 'none', display: 'flex', alignItems: 'center' }}>
|
{rightToolbar && <div style={{ flex: 'none', display: 'flex', alignItems: 'center' }}>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue