Add issue count badges to the bottom info bar when validating Everything

This commit is contained in:
Quincy Morgan
2019-10-14 17:14:47 +02:00
parent 9a2f58d5ef
commit 949ec8afa0
9 changed files with 156 additions and 12 deletions
+3 -2
View File
@@ -32,7 +32,8 @@ export function uiSourceSwitch(context) {
d3_select(this)
.text(isLive ? t('source_switch.live') : t('source_switch.dev'))
.classed('live', isLive);
.classed('live', isLive)
.classed('chip', isLive);
osm.switch(isLive ? keys[0] : keys[1]); // switch connection (warning: dispatches 'change' event)
}
@@ -42,7 +43,7 @@ export function uiSourceSwitch(context) {
.append('a')
.attr('href', '#')
.text(t('source_switch.live'))
.classed('live', true)
.attr('class', 'live chip')
.on('click', click);
};