custom profile field: Remove logic of choice-field-delete-btn.

Hide `delete-btn` of first choice in create-new-custom-field and
edit-choice-type-field form, so user can not delete all choices
and have to submit at least one choice.
This commit remove this logic of choice-field-delete-btn from
both settings.
This is preparatory commit of adding new logic in `delete-btn`.
This commit is contained in:
Yashashvi Dave
2018-08-11 20:32:46 +05:30
committed by Tim Abbott
parent 2a73b2b805
commit 3c9a2a6d53
3 changed files with 9 additions and 29 deletions

View File

@@ -90,8 +90,8 @@ run_test('populate_profile_fields', () => {
hint: 'lunch',
type: 'choice',
choices: [
{order: 0, value: 0, text: 'lunch', add_delete_button: false},
{order: 1, value: 1, text: 'dinner', add_delete_button: true},
{order: 0, value: 0, text: 'lunch'},
{order: 1, value: 1, text: 'dinner'},
],
is_choice_field: true,
},