mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 07:46:00 +00:00
Add copy/paste to query tab and database list
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user