From 7d17a11db03def02eb33ae918a3abdc8a0c0a704 Mon Sep 17 00:00:00 2001 From: evykassirer Date: Fri, 9 Dec 2022 16:49:05 -0800 Subject: [PATCH] compose banner: Rename banner shown after message is sent. This is both more clear regarding what the banner does, and is now in the same folder as the other compose banners. --- static/js/notifications.js | 4 ++-- .../message_sent_banner.hbs} | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) rename static/templates/{compose_notification.hbs => compose_banner/message_sent_banner.hbs} (86%) diff --git a/static/js/notifications.js b/static/js/notifications.js index e3a76a915b..0e28bc9f06 100644 --- a/static/js/notifications.js +++ b/static/js/notifications.js @@ -1,6 +1,6 @@ import $ from "jquery"; -import render_compose_notification from "../templates/compose_notification.hbs"; +import render_message_sent_banner from "../templates/compose_banner/message_sent_banner.hbs"; import * as alert_words from "./alert_words"; import * as blueslip from "./blueslip"; @@ -171,7 +171,7 @@ export function notify_above_composebox( link_text, ) { const $notification = $( - render_compose_notification({ + render_message_sent_banner({ note, link_class, above_composebox_narrow_url, diff --git a/static/templates/compose_notification.hbs b/static/templates/compose_banner/message_sent_banner.hbs similarity index 86% rename from static/templates/compose_notification.hbs rename to static/templates/compose_banner/message_sent_banner.hbs index 428731b94f..7edf0bfbe5 100644 --- a/static/templates/compose_notification.hbs +++ b/static/templates/compose_banner/message_sent_banner.hbs @@ -1,4 +1,3 @@ -{{! Content of sent-message notifications }}
{{note}} {{#if link_class}}{{link_text}}{{/if}}