From 1db2fbcd777c8e136919a65a7c571120c51dd7d2 Mon Sep 17 00:00:00 2001 From: aryanshridhar Date: Mon, 21 Jun 2021 07:47:45 +0000 Subject: [PATCH] stream_create: Move and rename the subscription_invites_warning modal. Moved `subscription_invites_warning` modal to `confirm_dialog` folder and renamed the modal to `confirm_subscription_invites_warning.hbs` to follow the naming convention. --- static/js/stream_create.js | 2 +- .../confirm_subscription_invites_warning.hbs} | 0 tools/linter_lib/custom_check.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename static/templates/{subscription_invites_warning_modal.hbs => confirm_dialog/confirm_subscription_invites_warning.hbs} (100%) diff --git a/static/js/stream_create.js b/static/js/stream_create.js index b88b3594f6..731847908e 100644 --- a/static/js/stream_create.js +++ b/static/js/stream_create.js @@ -1,9 +1,9 @@ import $ from "jquery"; import render_announce_stream_docs from "../templates/announce_stream_docs.hbs"; +import render_subscription_invites_warning_modal from "../templates/confirm_dialog/confirm_subscription_invites_warning.hbs"; import render_new_stream_user from "../templates/new_stream_user.hbs"; import render_new_stream_users from "../templates/new_stream_users.hbs"; -import render_subscription_invites_warning_modal from "../templates/subscription_invites_warning_modal.hbs"; import * as channel from "./channel"; import * as confirm_dialog from "./confirm_dialog"; diff --git a/static/templates/subscription_invites_warning_modal.hbs b/static/templates/confirm_dialog/confirm_subscription_invites_warning.hbs similarity index 100% rename from static/templates/subscription_invites_warning_modal.hbs rename to static/templates/confirm_dialog/confirm_subscription_invites_warning.hbs diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py index 9f033cd0b7..8f6a8798f5 100644 --- a/tools/linter_lib/custom_check.py +++ b/tools/linter_lib/custom_check.py @@ -705,7 +705,7 @@ html_rules: List["Rule"] = [ "templates/corporate/upgrade.html", # Miscellaneous violations to be cleaned up "static/templates/user_info_popover_title.hbs", - "static/templates/subscription_invites_warning_modal.hbs", + "static/templates/confirm_dialog/confirm_subscription_invites_warning.hbs", "templates/zerver/reset_confirm.html", "templates/zerver/config_error.html", "templates/zerver/dev_env_email_access_details.html",