snackbar imlementation

This commit is contained in:
Jan Prochazka
2021-06-06 12:39:05 +02:00
parent 27311afb31
commit 4d529e7e3f
6 changed files with 155 additions and 12 deletions

View File

@@ -16,6 +16,7 @@
export const matchingProps = ['conid', 'database', 'schemaName', 'pureName'];
export const allowAddToFavorites = props => true;
</script>
<script lang="ts">
@@ -46,6 +47,7 @@
import createActivator, { getActiveComponent } from '../utility/createActivator';
import registerCommand from '../commands/registerCommand';
import { registerMenu } from '../utility/contextMenu';
import { showSnackbarSuccess } from '../widgets/Snackbar.svelte';
export let tabid;
export let conid;
@@ -78,6 +80,7 @@
} else {
dispatchChangeSet({ type: 'reset', value: createChangeSet() });
cache.update(reloadDataCacheFunc);
showSnackbarSuccess('Saved to database');
}
}
@@ -102,6 +105,7 @@
}
registerMenu({ command: 'tableData.save', tag: 'save' });
</script>
<TableDataGrid