mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-17 12:10:39 +01:00
fix: F9 key shortcut refresh all query tabs instead of just selected one
This commit is contained in:
parent
2e49d86677
commit
c9ba2e5962
@ -372,7 +372,6 @@ export class MySQLClient extends AntaresCore {
|
|||||||
};
|
};
|
||||||
}) : [];
|
}) : [];
|
||||||
|
|
||||||
// TODO: move here fields and keys requests
|
|
||||||
if (args.details) {
|
if (args.details) {
|
||||||
let cachedTable;
|
let cachedTable;
|
||||||
|
|
||||||
|
@ -134,8 +134,10 @@ export default {
|
|||||||
},
|
},
|
||||||
onKey (e) {
|
onKey (e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
if (e.key === 'F9')
|
if (this.tabUid === this.workspace.selected_tab) {
|
||||||
this.runQuery(this.query);
|
if (e.key === 'F9')
|
||||||
|
this.runQuery(this.query);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -187,8 +187,10 @@ export default {
|
|||||||
},
|
},
|
||||||
onKey (e) {
|
onKey (e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
if (e.key === 'F5')
|
if (this.workspace.selected_tab === 'data') {
|
||||||
this.reloadTable();
|
if (e.key === 'F5')
|
||||||
|
this.reloadTable();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
setRefreshInterval () {
|
setRefreshInterval () {
|
||||||
if (this.refreshInterval)
|
if (this.refreshInterval)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user