Add copy/paste to query tab and database list

This commit is contained in:
ProjectInfinity
2024-03-13 23:59:02 +01:00
parent 1080147085
commit 10a916bce6
4 changed files with 50 additions and 2 deletions

View File

@@ -66,6 +66,11 @@ export function copyTextToClipboard(text) {
}
}
/* Currently this doesn't work in firefox stable, but works in nightly */
export async function getClipboardText() {
return await navigator.clipboard.readText();
}
export function extractRowCopiedValue(row, col) {
let value = row[col];
if (value === undefined) value = _.get(row, col);