frontend: realm_alias to realm_domain migration.

* Change the classes and ids of different widgets and modals
and make suitable changes in `admin.js`.

* Remove any other occurrences of `alias` or `realm_alias`
from admin.js.
This commit is contained in:
Harshit Bansal
2017-03-31 20:40:48 +00:00
committed by Tim Abbott
parent cebcfb8d29
commit 885ec07192
8 changed files with 58 additions and 55 deletions

View File

@@ -97,7 +97,7 @@ function render(template_name, args) {
(function admin_alias_list() {
var html = "<table>";
var args = {
alias: {
realm_domain: {
domain: 'zulip.org',
allow_subdomains: true,
},
@@ -111,7 +111,7 @@ function render(template_name, args) {
var subdomains_checkbox = row.find('.allow-subdomains');
assert.equal(button.text().trim(), "Remove");
assert(button.hasClass("delete_alias"));
assert(button.hasClass("delete_realm_domain"));
assert.equal(domain.text(), "zulip.org");
assert.equal(subdomains_checkbox.prop('checked'), true);