|
@@ -26,7 +26,7 @@ const OtherSettings = (): JSX.Element => {
|
|
|
await apiv3Put('/personal-setting/questionnaire-settings', {
|
|
await apiv3Put('/personal-setting/questionnaire-settings', {
|
|
|
isQuestionnaireEnabled,
|
|
isQuestionnaireEnabled,
|
|
|
});
|
|
});
|
|
|
- toastSuccess(t('toaster.update_successed', { target: 'アンケート設定', ns: 'commons' }));
|
|
|
|
|
|
|
+ toastSuccess(t('toaster.update_successed', { target: t('questionnaire.settings'), ns: 'commons' }));
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
toastError(err);
|
|
toastError(err);
|
|
@@ -52,7 +52,7 @@ const OtherSettings = (): JSX.Element => {
|
|
|
<div className="offset-md-3 col-md-6 text-left">
|
|
<div className="offset-md-3 col-md-6 text-left">
|
|
|
{!isLoadingCurrentUser && (
|
|
{!isLoadingCurrentUser && (
|
|
|
<div className="custom-control custom-switch custom-checkbox-primary">
|
|
<div className="custom-control custom-switch custom-checkbox-primary">
|
|
|
- <span id="personal-questionnaire-settings-toggle">
|
|
|
|
|
|
|
+ <span id="grw-questionnaire-settings-toggle-wrapper">
|
|
|
<input
|
|
<input
|
|
|
type="checkbox"
|
|
type="checkbox"
|
|
|
className="custom-control-input"
|
|
className="custom-control-input"
|
|
@@ -68,7 +68,7 @@ const OtherSettings = (): JSX.Element => {
|
|
|
<p className="form-text text-muted small">
|
|
<p className="form-text text-muted small">
|
|
|
{t('questionnaire.personal_settings_explanation')}
|
|
{t('questionnaire.personal_settings_explanation')}
|
|
|
</p>
|
|
</p>
|
|
|
- {!growiIsQuestionnaireEnabled && <UncontrolledTooltip placement="bottom" target="personal-questionnaire-settings-toggle">
|
|
|
|
|
|
|
+ {!growiIsQuestionnaireEnabled && <UncontrolledTooltip placement="bottom" target="grw-questionnaire-settings-toggle-wrapper">
|
|
|
{t('questionnaire.disabled_by_admin')}
|
|
{t('questionnaire.disabled_by_admin')}
|
|
|
</UncontrolledTooltip> }
|
|
</UncontrolledTooltip> }
|
|
|
</div>
|
|
</div>
|
|
@@ -78,8 +78,9 @@ const OtherSettings = (): JSX.Element => {
|
|
|
|
|
|
|
|
<div className="row my-3">
|
|
<div className="row my-3">
|
|
|
<div className="offset-4 col-5">
|
|
<div className="offset-4 col-5">
|
|
|
- <span className="d-inline-block" id="personal-questionnaire-settings-btn">
|
|
|
|
|
|
|
+ <span className="d-inline-block" id="grw-questionnaire-settings-update-btn-wrapper">
|
|
|
<button
|
|
<button
|
|
|
|
|
+ data-testid="grw-questionnaire-settings-update-btn"
|
|
|
type="button"
|
|
type="button"
|
|
|
className="btn btn-primary"
|
|
className="btn btn-primary"
|
|
|
onClick={onClickUpdateIsQuestionnaireEnabledHandler}
|
|
onClick={onClickUpdateIsQuestionnaireEnabledHandler}
|
|
@@ -89,7 +90,7 @@ const OtherSettings = (): JSX.Element => {
|
|
|
{t('Update')}
|
|
{t('Update')}
|
|
|
</button>
|
|
</button>
|
|
|
</span>
|
|
</span>
|
|
|
- {!growiIsQuestionnaireEnabled && <UncontrolledTooltip placement="bottom" target="personal-questionnaire-settings-btn">
|
|
|
|
|
|
|
+ {!growiIsQuestionnaireEnabled && <UncontrolledTooltip placement="bottom" target="grw-questionnaire-settings-update-btn-wrapper">
|
|
|
{t('questionnaire.disabled_by_admin')}
|
|
{t('questionnaire.disabled_by_admin')}
|
|
|
</UncontrolledTooltip>}
|
|
</UncontrolledTooltip>}
|
|
|
</div>
|
|
</div>
|