diff --git a/web/static/js/components/charts/QueueSize.jsx b/web/static/js/components/charts/QueueSize.jsx index 69e29d84c..f6b685d8e 100644 --- a/web/static/js/components/charts/QueueSize.jsx +++ b/web/static/js/components/charts/QueueSize.jsx @@ -105,7 +105,7 @@ class QueueSize extends Component { left.x2 && right.x1 > right.x2 ? corner : 0), corner)} /> - {t('{{respondentsNeeded}} respondents needed', {needed: toKilo(needed)})} + {t('{{respondentsNeeded}} respondents needed', {respondentsNeeded: toKilo(needed)})} {t('to have {{additionalCompletes}} additional completes', {additionalCompletes: additionalCompletes ? toKilo(additionalCompletes) : 0})} {additionalRespondents ? warning{t('Add {{additionalRespondents}} additional respondents', {additionalRespondents: toKilo(additionalRespondents)})} : null} diff --git a/web/static/js/components/surveys/PanelSurveyShow.jsx b/web/static/js/components/surveys/PanelSurveyShow.jsx index 5fcf65e07..48c9a4576 100644 --- a/web/static/js/components/surveys/PanelSurveyShow.jsx +++ b/web/static/js/components/surveys/PanelSurveyShow.jsx @@ -158,9 +158,11 @@ const mapStateToProps = (state, ownProps) => { const name = panelSurvey && panelSurvey.name || t('Untitled panel survey') const occurrences = panelSurvey ? panelSurvey.occurrences : null + + // NOTE: we fake pagination (backend doesn't paginate, yet) let totalCount = occurrences ? occurrences.length : 0 const pageIndex = 0 - const pageSize = 0 + const pageSize = totalCount const startIndex = Math.min(totalCount, pageIndex + 1) const endIndex = Math.min(pageIndex + pageSize, totalCount) diff --git a/web/static/js/components/ui/RepeatButton.jsx b/web/static/js/components/ui/RepeatButton.jsx index 92a3b96ab..d4a66d1b8 100644 --- a/web/static/js/components/ui/RepeatButton.jsx +++ b/web/static/js/components/ui/RepeatButton.jsx @@ -3,7 +3,7 @@ import { Tooltip } from '.' import classNames from 'classnames/bind' export const RepeatButton = ({ text, onClick, disabled }) => { - const icon = replay + const icon = repeat_one const baseClassNames = 'btn-floating btn-large right mtop primary-button' const button = disabled ? {icon}