mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 22:36:00 +00:00
SYNC: autocommit icons
This commit is contained in:
committed by
Diflow
parent
9e9dec5389
commit
2268086eac
@@ -213,6 +213,8 @@
|
|||||||
'icon transaction': 'mdi mdi-code-json',
|
'icon transaction': 'mdi mdi-code-json',
|
||||||
'icon commit': 'mdi mdi-check-circle',
|
'icon commit': 'mdi mdi-check-circle',
|
||||||
'icon rollback': 'mdi mdi-close-circle',
|
'icon rollback': 'mdi mdi-close-circle',
|
||||||
|
'icon autocommit-on': 'mdi mdi-check-circle',
|
||||||
|
'icon autocommit-off': 'mdi mdi-check-circle-outline',
|
||||||
|
|
||||||
'img ok': 'mdi mdi-check-circle color-icon-green',
|
'img ok': 'mdi mdi-check-circle color-icon-green',
|
||||||
'img ok-inv': 'mdi mdi-check-circle color-icon-inv-green',
|
'img ok-inv': 'mdi mdi-check-circle color-icon-inv-green',
|
||||||
|
|||||||
@@ -71,16 +71,16 @@
|
|||||||
registerCommand({
|
registerCommand({
|
||||||
id: 'query.autocommitOffSwitch',
|
id: 'query.autocommitOffSwitch',
|
||||||
category: 'Query',
|
category: 'Query',
|
||||||
name: 'Autocommit: OFF',
|
name: 'Auto commit: OFF',
|
||||||
icon: 'icon transaction',
|
icon: 'icon autocommit-off',
|
||||||
testEnabled: () => getCurrentEditor()?.autocommitOffSwitchEnabled(),
|
testEnabled: () => getCurrentEditor()?.autocommitOffSwitchEnabled(),
|
||||||
onClick: () => getCurrentEditor().autocommitOffSwitch(),
|
onClick: () => getCurrentEditor().autocommitOffSwitch(),
|
||||||
});
|
});
|
||||||
registerCommand({
|
registerCommand({
|
||||||
id: 'query.autocommitOnSwitch',
|
id: 'query.autocommitOnSwitch',
|
||||||
category: 'Query',
|
category: 'Query',
|
||||||
name: 'Autocommit: ON',
|
name: 'Auto commit: ON',
|
||||||
icon: 'icon transaction',
|
icon: 'icon autocommit-on',
|
||||||
testEnabled: () => getCurrentEditor()?.autocommitOnSwitchEnabled(),
|
testEnabled: () => getCurrentEditor()?.autocommitOnSwitchEnabled(),
|
||||||
onClick: () => getCurrentEditor().autocommitOnSwitch(),
|
onClick: () => getCurrentEditor().autocommitOnSwitch(),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user