Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

organization_settings: Restyle "Deactivate organization" button.

Maneesh Shukla97b210d533e4
diff --git a/web/templates/settings/account_settings.hbs b/web/templates/settings/account_settings.hbs
index 74e4292ef87..b5243f38654 100644
--- a/web/templates/settings/account_settings.hbs
+++ b/web/templates/settings/account_settings.hbs
@@ -77,9 +77,12 @@
}}
</div>
{{#if owner_is_only_user_in_organization}}
- <button type="submit" class="button rounded button-danger deactivate_realm_button">
- {{t 'Deactivate organization' }}
- </button>
+ {{> ../components/action_button
+ label=(t "Deactivate organization")
+ type="quiet"
+ intent="danger"
+ custom_classes="deactivate_realm_button inline-block"
+ }}
{{/if}}
</div>
</div>
diff --git a/web/templates/settings/organization_profile_admin.hbs b/web/templates/settings/organization_profile_admin.hbs
index cd660fd0d99..0fd5cc9a06c 100644
--- a/web/templates/settings/organization_profile_admin.hbs
+++ b/web/templates/settings/organization_profile_admin.hbs
@@ -89,9 +89,12 @@
<div class="deactivate-realm-section">
<div class="input-group">
<div id="deactivate_realm_button_container" class="inline-block {{#unless is_owner}}disabled_setting_tooltip{{/unless}}">
- <button class="button rounded button-danger deactivate_realm_button">
- {{t 'Deactivate organization' }}
- </button>
+ {{> ../components/action_button
+ label=(t "Deactivate organization")
+ type="quiet"
+ intent="danger"
+ custom_classes="deactivate_realm_button"
+ }}
</div>
</div>
</div>