Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 6274582

Browse files
authored
fix: DEV-3734: Add interface to show task counter (#1105)
1 parent 575938b commit 6274582

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/TopBar/CurrentTask.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const CurrentTask = observer(({ store }) => {
1414
}, [store.taskHistory]);
1515

1616
const historyEnabled = store.hasInterface('topbar:prevnext');
17+
const showCounter = store.hasInterface('topbar:task-counter');
1718
// @todo some interface?
1819
const canPostpone = isFF(FF_DEV_3034)
1920
&& !isDefined(store.annotationStore.selected.pk)
@@ -26,7 +27,7 @@ export const CurrentTask = observer(({ store }) => {
2627
<Block name="current-task" mod={{ 'with-history': historyEnabled }}>
2728
<Elem name="task-id">
2829
{store.task.id ?? guidGenerator()}
29-
{historyEnabled && (
30+
{historyEnabled && showCounter && (
3031
<Elem name="task-count">
3132
{currentIndex} of {store.taskHistory.length}
3233
</Elem>

0 commit comments

Comments
 (0)