From 9262c92591b8347b555845f6a724fb171a51dd64 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Tue, 17 Jan 2023 20:53:01 +0100 Subject: [PATCH] =?UTF-8?q?Added=20some=20`=E2=80=A6`s=20to=20dropdown=20i?= =?UTF-8?q?tems?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/organisms/connection/dblist.svelte | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/src/organisms/connection/dblist.svelte b/frontend/src/organisms/connection/dblist.svelte index a5cb3ac..551ae6d 100644 --- a/frontend/src/organisms/connection/dblist.svelte +++ b/frontend/src/organisms/connection/dblist.svelte @@ -80,18 +80,18 @@ children: Object.keys(connection.databases[dbKey].collections).map(collKey => ({ id: collKey, menu: [ - { label: `Drop ${collKey}`, fn: () => dropCollection(dbKey, collKey) }, - { label: `Drop ${dbKey}`, fn: () => dropDatabase(dbKey) }, + { label: `Drop ${collKey}…`, fn: () => dropCollection(dbKey, collKey) }, + { label: `Drop ${dbKey}…`, fn: () => dropDatabase(dbKey) }, { separator: true }, - { label: 'New database', fn: () => dispatch('newDatabase') }, - { label: 'New collection', fn: () => dispatch('newCollection') }, + { label: 'New database≥', fn: () => dispatch('newDatabase') }, + { label: 'New collection≥', fn: () => dispatch('newCollection') }, ], })).sort((a, b) => a.id.localeCompare(b)) || [], menu: [ - { label: `Drop ${dbKey}`, fn: () => dropDatabase(dbKey) }, + { label: `Drop ${dbKey}…`, fn: () => dropDatabase(dbKey) }, { separator: true }, - { label: 'New database', fn: () => dispatch('newDatabase') }, - { label: 'New collection', fn: () => dispatch('newCollection') }, + { label: 'New database…', fn: () => dispatch('newDatabase') }, + { label: 'New collection…', fn: () => dispatch('newCollection') }, ], }))} actions={[ @@ -99,8 +99,8 @@ { icon: '+', fn: evt => { if (activeDbKey) { contextMenu.show(evt, [ - { label: 'New database', fn: () => dispatch('newDatabase') }, - { label: 'New collection', fn: () => dispatch('newCollection') }, + { label: 'New database…', fn: () => dispatch('newDatabase') }, + { label: 'New collection…', fn: () => dispatch('newCollection') }, ]); } else { @@ -110,8 +110,8 @@ { icon: '-', fn: evt => { if (activeCollKey) { contextMenu.show(evt, [ - { label: 'Drop database', fn: () => dropDatabase(activeDbKey) }, - { label: 'Drop collection', fn: () => dropCollection(activeDbKey, activeCollKey) }, + { label: 'Drop database…', fn: () => dropDatabase(activeDbKey) }, + { label: 'Drop collection…', fn: () => dropCollection(activeDbKey, activeCollKey) }, ]); } else {