Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
modals: Switch confirm_delete_code_playgrounds_modal to compact mode.
Sayam Samal803a0e646ae2
diff --git a/web/src/settings_playgrounds.ts b/web/src/settings_playgrounds.tsindex 45c14075776..2076351bc5e 100644--- a/web/src/settings_playgrounds.ts+++ b/web/src/settings_playgrounds.ts@@ -1,6 +1,5 @@import $ from "jquery";-import render_confirm_delete_playground from "../templates/confirm_dialog/confirm_delete_playground.hbs";import render_admin_playground_list from "../templates/settings/admin_playground_list.hbs";import {Typeahead} from "./bootstrap_typeahead.ts";@@ -95,11 +94,11 @@ function build_page(): void {const url ="/json/realm/playgrounds/" +encodeURIComponent($button.closest("tr").attr("data-playground-id")!);- const modal_content_html = render_confirm_delete_playground();confirm_dialog.launch({modal_title_html: $t_html({defaultMessage: "Delete code playground?"}),- modal_content_html,+ modal_content_html: $t_html({defaultMessage: "This action cannot be undone."}),+ is_compact: true,id: "confirm_delete_code_playgrounds_modal",on_click() {dialog_widget.submit_api_request(channel.del, url, {});diff --git a/web/templates/confirm_dialog/confirm_delete_playground.hbs b/web/templates/confirm_dialog/confirm_delete_playground.hbsdeleted file mode 100644index 890b3b29168..00000000000--- a/web/templates/confirm_dialog/confirm_delete_playground.hbs+++ /dev/null@@ -1,2 +0,0 @@-<p>{{t "This action cannot be undone."}}</p>-