mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
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:
committed by
Tim Abbott
parent
2a73b2b805
commit
3c9a2a6d53
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user