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.

starred_messages_ui: Move user-confirmation modals to confirm_dialog folder.

aryanshridhar3cad4c7837d0
diff --git a/static/js/starred_messages_ui.js b/static/js/starred_messages_ui.js
index 3c0d3e76ced..ff27be0beb0 100644
--- a/static/js/starred_messages_ui.js
+++ b/static/js/starred_messages_ui.js
@@ -1,7 +1,7 @@
import $ from "jquery";
-import render_confirm_unstar_all_messages from "../templates/confirm_unstar_all_messages.hbs";
-import render_confirm_unstar_all_messages_in_topic from "../templates/confirm_unstar_all_messages_in_topic.hbs";
+import render_confirm_unstar_all_messages from "../templates/confirm_dialog/confirm_unstar_all_messages.hbs";
+import render_confirm_unstar_all_messages_in_topic from "../templates/confirm_dialog/confirm_unstar_all_messages_in_topic.hbs";
import * as confirm_dialog from "./confirm_dialog";
import {$t_html} from "./i18n";
diff --git a/static/templates/confirm_unstar_all_messages.hbs b/static/templates/confirm_dialog/confirm_unstar_all_messages.hbs
similarity index 100%
rename from static/templates/confirm_unstar_all_messages.hbs
rename to static/templates/confirm_dialog/confirm_unstar_all_messages.hbs
diff --git a/static/templates/confirm_unstar_all_messages_in_topic.hbs b/static/templates/confirm_dialog/confirm_unstar_all_messages_in_topic.hbs
similarity index 66%
rename from static/templates/confirm_unstar_all_messages_in_topic.hbs
rename to static/templates/confirm_dialog/confirm_unstar_all_messages_in_topic.hbs
index 9f95bfcb0d1..5f982fa814f 100644
--- a/static/templates/confirm_unstar_all_messages_in_topic.hbs
+++ b/static/templates/confirm_dialog/confirm_unstar_all_messages_in_topic.hbs
@@ -1,6 +1,6 @@
<p>
{{#tr}}
Are you sure you want to unstar all messages in <stream-topic></stream-topic>? This action cannot be undone.
- {{#*inline "stream-topic"}}{{> stream_topic_widget}}{{/inline}}
+ {{#*inline "stream-topic"}}{{> ../stream_topic_widget}}{{/inline}}
{{/tr}}
</p>