saved_snippet: Move "Create a new saved snippet" button to the bottom.

Renames "Add a new saved snippet" to "Create a new saved snippet" and
"Add saved snippet" tooltip to "Insert saved snippet".

Moves "Create a new saved snippet" button to the bottom sticky area of the
dropdown.
This commit is contained in:
Vector73
2025-01-30 12:01:54 +00:00
committed by Tim Abbott
parent 51b47f4233
commit 32d131ab5a
6 changed files with 15 additions and 30 deletions

View File

@@ -2,7 +2,6 @@
const assert = require("node:assert/strict");
const {$t} = require("./lib/i18n.cjs");
const {set_global, zrequire} = require("./lib/namespace.cjs");
const {run_test} = require("./lib/test.cjs");
const blueslip = require("./lib/zblueslip.cjs");
@@ -58,13 +57,6 @@ run_test("options for dropdown widget", () => {
saved_snippets.add_saved_snippet(saved_snippet);
assert.deepEqual(saved_snippets.get_options_for_dropdown_widget(), [
{
unique_id: -1,
name: $t({defaultMessage: "Add a new saved snippet"}),
description: "",
bold_current_selection: true,
has_delete_icon: false,
},
{
unique_id: 3,
name: "Another saved snippet",