user_pref change
recording_pref chage from enum to normal integer values in user.rb
This commit is contained in:
parent
71458e3983
commit
4a3630f786
|
|
@ -80,8 +80,8 @@ const JKAccountPreferences = () => {
|
|||
value="1"
|
||||
data-testid="recording_pref_my_audio"
|
||||
onClick={() => setSelectedPref(1)} />
|
||||
<Label for="exampleSelect" className='mr-1'>{t('preferences.recording_preferences.options.my_audio')}</Label>
|
||||
<JKTooltip title={t('preferences.recording_preferences.options.my_audio_tooltip')} />
|
||||
<Label for="exampleSelect" className='mr-1'>{t('preferences.recording_preferences.options.my_audio')}<JKTooltip title={t('preferences.recording_preferences.options.my_audio_tooltip')} /></Label>
|
||||
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
<Input
|
||||
|
|
@ -91,8 +91,7 @@ const JKAccountPreferences = () => {
|
|||
value="2"
|
||||
data-testid="recording_pref_my_audio_and_session_mix"
|
||||
onClick={() => setSelectedPref(2)} />
|
||||
<Label for="exampleSelect" className='mr-1'>{t('preferences.recording_preferences.options.my_audio_and_session_mix')}</Label>
|
||||
<JKTooltip title={t('preferences.recording_preferences.options.my_audio_and_session_mix_tooltip')} />
|
||||
<Label for="exampleSelect" className='mr-1'>{t('preferences.recording_preferences.options.my_audio_and_session_mix')}<JKTooltip title={t('preferences.recording_preferences.options.my_audio_and_session_mix_tooltip')} /></Label>
|
||||
</FormGroup>
|
||||
</Form>
|
||||
</CardBody>
|
||||
|
|
|
|||
|
|
@ -65,12 +65,9 @@ module JamRuby
|
|||
ESCALATION_REASON_SETUP_WIZARD_FAILURE = "Setup Wizard Failure"
|
||||
ESCALATION_REASON_OTHER = "Other"
|
||||
ESCALATION_REASONS = [ESCALATION_REASON_NO_AUDIO_STREAM, ESCALATION_REASON_NO_VIDEO_STREAM, ESCALATION_REASON_SETUP_WIZARD_FAILURE, ESCALATION_REASON_OTHER]
|
||||
|
||||
enum :recording_pref, [
|
||||
{no_recording: 0},
|
||||
{own_tracks: 1},
|
||||
{own_tracks_and_session_mix: 2}
|
||||
]
|
||||
RECORDING_PREF_NO_RECORDING = 0
|
||||
RECORDING_PREF_OWN_TRACKS = 1
|
||||
RECORDING_PREF_OWN_TRACKS_AND_SESSION_MIX = 2
|
||||
|
||||
devise :database_authenticatable, :recoverable, :rememberable
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue