|
|
@@ -432,21 +432,23 @@ export const SessionQuestionDock: Component<{ request: QuestionRequest; onSubmit
|
|
|
header={
|
|
|
<>
|
|
|
<div data-slot="question-header-title">{summary()}</div>
|
|
|
- <div data-slot="question-progress">
|
|
|
- <For each={questions()}>
|
|
|
- {(_, i) => (
|
|
|
- <button
|
|
|
- type="button"
|
|
|
- data-slot="question-progress-segment"
|
|
|
- data-active={i() === store.tab}
|
|
|
- data-answered={answered(i())}
|
|
|
- disabled={sending()}
|
|
|
- onClick={() => jump(i())}
|
|
|
- aria-label={`${language.t("ui.tool.questions")} ${i() + 1}`}
|
|
|
- />
|
|
|
- )}
|
|
|
- </For>
|
|
|
- </div>
|
|
|
+ <Show when={total() > 1}>
|
|
|
+ <div data-slot="question-progress">
|
|
|
+ <For each={questions()}>
|
|
|
+ {(_, i) => (
|
|
|
+ <button
|
|
|
+ type="button"
|
|
|
+ data-slot="question-progress-segment"
|
|
|
+ data-active={i() === store.tab}
|
|
|
+ data-answered={answered(i())}
|
|
|
+ disabled={sending()}
|
|
|
+ onClick={() => jump(i())}
|
|
|
+ aria-label={`${language.t("ui.tool.questions")} ${i() + 1}`}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ </For>
|
|
|
+ </div>
|
|
|
+ </Show>
|
|
|
</>
|
|
|
}
|
|
|
footer={
|