diff --git a/frontend/src/components/details.svelte b/frontend/src/components/details.svelte
index 06ac7c1..566ed75 100644
--- a/frontend/src/components/details.svelte
+++ b/frontend/src/components/details.svelte
@@ -37,6 +37,7 @@
border-radius: 4px;
padding: 0.5em 0.5em 0;
margin-bottom: 0.5rem;
+ background-color: #fff;
}
details[open] {
padding: 0.5em;
diff --git a/frontend/src/components/hint.svelte b/frontend/src/components/hint.svelte
new file mode 100644
index 0000000..ffeebf5
--- /dev/null
+++ b/frontend/src/components/hint.svelte
@@ -0,0 +1,25 @@
+
+
+
+
diff --git a/frontend/src/components/icon.svelte b/frontend/src/components/icon.svelte
index 88c8ea0..85b869e 100644
--- a/frontend/src/components/icon.svelte
+++ b/frontend/src/components/icon.svelte
@@ -79,5 +79,7 @@
{:else if name === 'o'}
+ {:else if name === 'info'}
+
{/if}
diff --git a/frontend/src/organisms/connection/index.svelte b/frontend/src/organisms/connection/index.svelte
index e262529..f5d0e6e 100644
--- a/frontend/src/organisms/connection/index.svelte
+++ b/frontend/src/organisms/connection/index.svelte
@@ -11,6 +11,7 @@
import { EventsOn } from '../../../wailsjs/runtime/runtime';
import ExportInfo from './export/exportinfo.svelte';
import DumpInfo from './export/dumpinfo.svelte';
+ import Hint from '../../components/hint.svelte';
export let hosts = {};
export let activeHostKey = '';
@@ -44,11 +45,9 @@
showHostDetail = true;
}
- async function createDatabase() {
- busy.start();
+ function createDatabase() {
$connections[activeHostKey].databases[newDb.name] = { collections: {} };
newDb = undefined;
- busy.end();
}
function openEditCollModal(collKey) {
@@ -68,11 +67,9 @@
busy.end();
}
- async function createCollection() {
- busy.start();
+ function createCollection() {
$connections[activeHostKey].databases[activeDbKey].collections[newColl.name] = {};
newColl = undefined;
- busy.end();
}
function exportCollection(collKey) {
@@ -134,7 +131,9 @@
{#if newDb}
Create a database
- Note: databases in MongoDB do not exist until they have a collection and an item. Your new database will not persist on the server; fill it to have it created.
+
+ Note: databases in MongoDB do not exist until they have a collection and an item. Your new database will not persist on the server; fill it to have it created.
+