mirror of https://github.com/zulip/zulip.git
actions_popover: Rename template to remove `_content`.
This commit is contained in:
parent
4c11f49627
commit
acd584c336
|
@ -1,7 +1,7 @@
|
|||
import ClipboardJS from "clipboard";
|
||||
import $ from "jquery";
|
||||
|
||||
import render_actions_popover_content from "../templates/actions_popover_content.hbs";
|
||||
import render_actions_popover from "../templates/actions_popover.hbs";
|
||||
|
||||
import * as blueslip from "./blueslip";
|
||||
import * as compose_actions from "./compose_actions";
|
||||
|
@ -80,7 +80,7 @@ export function initialize() {
|
|||
const message_id = rows.id($row);
|
||||
message_lists.current.select_id(message_id);
|
||||
const args = popover_menus_data.get_actions_popover_content_context(message_id);
|
||||
instance.setContent(parse_html(render_actions_popover_content(args)));
|
||||
instance.setContent(parse_html(render_actions_popover(args)));
|
||||
$row.addClass("has_actions_popover");
|
||||
},
|
||||
onMount(instance) {
|
||||
|
|
|
@ -77,12 +77,12 @@ run_test("t_tag", ({mock_template}) => {
|
|||
"http://zulip.zulipdev.com/#narrow/stream/101-devel/topic/testing/near/99",
|
||||
};
|
||||
|
||||
mock_template("actions_popover_content.hbs", true, (data, html) => {
|
||||
mock_template("actions_popover.hbs", true, (data, html) => {
|
||||
assert.equal(data, args);
|
||||
assert.ok(html.indexOf("Citer et répondre") > 0);
|
||||
});
|
||||
|
||||
require("../templates/actions_popover_content.hbs")(args);
|
||||
require("../templates/actions_popover.hbs")(args);
|
||||
});
|
||||
|
||||
run_test("tr_tag", ({mock_template}) => {
|
||||
|
|
Loading…
Reference in New Issue