mirror of https://github.com/zulip/zulip.git
devtools: Order the fixtures dropdown menu alphabetically in the IDP.
This is a simple and small commit which will alphabetically order the entries of the fixtures dropdown menu in the "integrations developer panel" devtool.
This commit is contained in:
parent
98a33c0fda
commit
635b96dbc1
|
@ -127,7 +127,7 @@ function load_fixture_options(integration_name) {
|
||||||
the fixture options for the fixture_names dropdown and also set
|
the fixture options for the fixture_names dropdown and also set
|
||||||
the fixture body to the first fixture by default. */
|
the fixture body to the first fixture by default. */
|
||||||
var fixtures_options_dropdown = $("#fixture_name")[0];
|
var fixtures_options_dropdown = $("#fixture_name")[0];
|
||||||
var fixtures_names = Object.keys(loaded_fixtures[integration_name]);
|
var fixtures_names = Object.keys(loaded_fixtures[integration_name]).sort();
|
||||||
|
|
||||||
fixtures_names.forEach(function (fixture_name) {
|
fixtures_names.forEach(function (fixture_name) {
|
||||||
var new_dropdown_option = document.createElement("option");
|
var new_dropdown_option = document.createElement("option");
|
||||||
|
|
Loading…
Reference in New Issue