mirror of https://github.com/zulip/zulip.git
settings: Rename btn -> button in #add-custom-profile-field-btn.
This commit is a part of the efforts to rename btn-related classes and variables to align with Zulip's no-abbreviations policy and streamline the search results.
This commit is contained in:
parent
650076b027
commit
0158768a91
|
@ -8,7 +8,7 @@ import * as common from "./lib/common.ts";
|
||||||
const profile_field_row = "#admin_profile_fields_table tr:nth-last-child(1)";
|
const profile_field_row = "#admin_profile_fields_table tr:nth-last-child(1)";
|
||||||
|
|
||||||
async function test_add_new_profile_field(page: Page): Promise<void> {
|
async function test_add_new_profile_field(page: Page): Promise<void> {
|
||||||
await page.click("#add-custom-profile-field-btn");
|
await page.click("#add-custom-profile-field-button");
|
||||||
await common.wait_for_micromodal_to_open(page);
|
await common.wait_for_micromodal_to_open(page);
|
||||||
assert.strictEqual(
|
assert.strictEqual(
|
||||||
await common.get_text_from_selector(page, ".dialog_heading"),
|
await common.get_text_from_selector(page, ".dialog_heading"),
|
||||||
|
|
|
@ -817,7 +817,7 @@ export function build_page(): void {
|
||||||
meta.loaded = true;
|
meta.loaded = true;
|
||||||
|
|
||||||
$("#admin_profile_fields_table").on("click", ".delete", delete_profile_field);
|
$("#admin_profile_fields_table").on("click", ".delete", delete_profile_field);
|
||||||
$("#add-custom-profile-field-btn").on("click", open_custom_profile_field_form_modal);
|
$("#add-custom-profile-field-button").on("click", open_custom_profile_field_form_modal);
|
||||||
$("#admin_profile_fields_table").on("click", ".open-edit-form-modal", open_edit_form_modal);
|
$("#admin_profile_fields_table").on("click", ".open-edit-form-modal", open_edit_form_modal);
|
||||||
$("#admin_profile_fields_table").on(
|
$("#admin_profile_fields_table").on(
|
||||||
"click",
|
"click",
|
||||||
|
|
|
@ -601,7 +601,7 @@ input[type="checkbox"] {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#add-custom-profile-field-btn {
|
#add-custom-profile-field-button {
|
||||||
float: right;
|
float: right;
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<h3>{{t "Custom profile fields"}}</h3>
|
<h3>{{t "Custom profile fields"}}</h3>
|
||||||
<div class="alert-notification" id="admin-profile-field-status"></div>
|
<div class="alert-notification" id="admin-profile-field-status"></div>
|
||||||
{{#if is_admin}}
|
{{#if is_admin}}
|
||||||
<button class="button rounded sea-green" id="add-custom-profile-field-btn">{{t "Add a new profile field" }}</button>
|
<button class="button rounded sea-green" id="add-custom-profile-field-button">{{t "Add a new profile field" }}</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="progressive-table-wrapper" data-simplebar data-simplebar-tab-index="-1">
|
<div class="progressive-table-wrapper" data-simplebar data-simplebar-tab-index="-1">
|
||||||
|
|
Loading…
Reference in New Issue