mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-02 02:03:58 +00:00
SYNC: removed selectedCellsCallback
This commit is contained in:
committed by
Diflow
parent
1964e54476
commit
93c1f31588
@@ -275,6 +275,7 @@
|
|||||||
onClose={() => {
|
onClose={() => {
|
||||||
cellDataViewVisible = false;
|
cellDataViewVisible = false;
|
||||||
}}
|
}}
|
||||||
|
selection={publishedCells}
|
||||||
/>
|
/>
|
||||||
</svelte:fragment>
|
</svelte:fragment>
|
||||||
</HorizontalSplitter>
|
</HorizontalSplitter>
|
||||||
|
|||||||
@@ -388,7 +388,7 @@
|
|||||||
import DataFilterControl from './DataFilterControl.svelte';
|
import DataFilterControl from './DataFilterControl.svelte';
|
||||||
import createReducer from '../utility/createReducer';
|
import createReducer from '../utility/createReducer';
|
||||||
import keycodes from '../utility/keycodes';
|
import keycodes from '../utility/keycodes';
|
||||||
import { copyRowsFormat, currentArchive, selectedCellsCallback } from '../stores';
|
import { copyRowsFormat, currentArchive } from '../stores';
|
||||||
import {
|
import {
|
||||||
copyRowsFormatDefs,
|
copyRowsFormatDefs,
|
||||||
copyRowsToClipboard,
|
copyRowsToClipboard,
|
||||||
@@ -1203,7 +1203,6 @@
|
|||||||
if (rowIndexes.every(x => grider.getRowData(x))) {
|
if (rowIndexes.every(x => grider.getRowData(x))) {
|
||||||
lastPublishledSelectedCellsRef.set(stringified);
|
lastPublishledSelectedCellsRef.set(stringified);
|
||||||
changeSetValueRef.set($changeSetStore?.value);
|
changeSetValueRef.set($changeSetStore?.value);
|
||||||
$selectedCellsCallback = () => getCellsPublished(selectedCells);
|
|
||||||
|
|
||||||
if (onChangeSelectedColumns) {
|
if (onChangeSelectedColumns) {
|
||||||
onChangeSelectedColumns(getSelectedColumns().map(x => x.columnName));
|
onChangeSelectedColumns(getSelectedColumns().map(x => x.columnName));
|
||||||
|
|||||||
@@ -168,7 +168,6 @@ export const nullStore = readable(null, () => {});
|
|||||||
export const currentArchive = writableWithStorage('default', 'currentArchive');
|
export const currentArchive = writableWithStorage('default', 'currentArchive');
|
||||||
export const currentApplication = writableWithStorage(null, 'currentApplication');
|
export const currentApplication = writableWithStorage(null, 'currentApplication');
|
||||||
export const isFileDragActive = writable(false);
|
export const isFileDragActive = writable(false);
|
||||||
export const selectedCellsCallback = writable(null);
|
|
||||||
export const loadingPluginStore = writable({
|
export const loadingPluginStore = writable({
|
||||||
loaded: false,
|
loaded: false,
|
||||||
loadingPackageName: null,
|
loadingPackageName: null,
|
||||||
|
|||||||
@@ -103,13 +103,13 @@
|
|||||||
import ErrorInfo from '../elements/ErrorInfo.svelte';
|
import ErrorInfo from '../elements/ErrorInfo.svelte';
|
||||||
import { selectionCouldBeShownOnMap } from '../elements/SelectionMapView.svelte';
|
import { selectionCouldBeShownOnMap } from '../elements/SelectionMapView.svelte';
|
||||||
import SelectField from '../forms/SelectField.svelte';
|
import SelectField from '../forms/SelectField.svelte';
|
||||||
import { selectedCellsCallback } from '../stores';
|
|
||||||
import WidgetTitle from './WidgetTitle.svelte';
|
import WidgetTitle from './WidgetTitle.svelte';
|
||||||
import JsonExpandedCellView from '../celldata/JsonExpandedCellView.svelte';
|
import JsonExpandedCellView from '../celldata/JsonExpandedCellView.svelte';
|
||||||
import XmlCellView from '../celldata/XmlCellView.svelte';
|
import XmlCellView from '../celldata/XmlCellView.svelte';
|
||||||
import { _t } from '../translations';
|
import { _t } from '../translations';
|
||||||
|
|
||||||
export let onClose;
|
export let onClose;
|
||||||
|
export let selection;
|
||||||
|
|
||||||
let selectedFormatType = 'autodetect';
|
let selectedFormatType = 'autodetect';
|
||||||
|
|
||||||
@@ -118,8 +118,6 @@
|
|||||||
|
|
||||||
$: usedFormatType = selectedFormatType == 'autodetect' ? autodetectFormatType : selectedFormatType;
|
$: usedFormatType = selectedFormatType == 'autodetect' ? autodetectFormatType : selectedFormatType;
|
||||||
$: usedFormat = formats.find(x => x.type == usedFormatType);
|
$: usedFormat = formats.find(x => x.type == usedFormatType);
|
||||||
|
|
||||||
$: selection = $selectedCellsCallback ? $selectedCellsCallback() : [];
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
|||||||
Reference in New Issue
Block a user