mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-21 06:00:39 +00:00
@@ -2357,7 +2357,7 @@ async function confirmPasteTable() {
|
||||
return;
|
||||
}
|
||||
const pasteFeedback = tablePasteFeedback(successCount, pasteFailCount, firstPasteError);
|
||||
if (pasteFeedback.failedCount === 0) {
|
||||
if (pasteFailCount === 0) {
|
||||
if (connectionStore.treeClipboard === clipboardAtPasteStart) {
|
||||
connectionStore.treeClipboard = null;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ describe("ObjectBrowser table clipboard context menu", () => {
|
||||
|
||||
it("consumes only the clipboard used by a fully successful paste", () => {
|
||||
expect(objectBrowserSource).toMatch(
|
||||
/async function confirmPasteTable\(\)[\s\S]*?const clipboardAtPasteStart = connectionStore\.treeClipboard[\s\S]*?const pasteFeedback = tablePasteFeedback\(successCount, pasteFailCount, firstPasteError\)[\s\S]*?if \(pasteFeedback\.failedCount === 0\)[\s\S]*?connectionStore\.treeClipboard === clipboardAtPasteStart[\s\S]*?connectionStore\.treeClipboard = null/,
|
||||
/async function confirmPasteTable\(\)[\s\S]*?const clipboardAtPasteStart = connectionStore\.treeClipboard[\s\S]*?const pasteFeedback = tablePasteFeedback\(successCount, pasteFailCount, firstPasteError\)[\s\S]*?if \(pasteFailCount === 0\)[\s\S]*?connectionStore\.treeClipboard === clipboardAtPasteStart[\s\S]*?connectionStore\.treeClipboard = null/,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -3938,7 +3938,7 @@ async function confirmPasteTable() {
|
||||
return;
|
||||
}
|
||||
const pasteFeedback = tablePasteFeedback(successCount, pasteFailCount, firstPasteError);
|
||||
if (pasteFeedback.failedCount === 0) {
|
||||
if (pasteFailCount === 0) {
|
||||
if (connectionStore.treeClipboard === clipboardAtPasteStart) {
|
||||
connectionStore.treeClipboard = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user