dbeaver/pro#6847 fix: elements order (#3729)

* dbeaver/pro#6847 fix: elements order

* fix: linting

* fix: actions order

* fix: actions order

---------

Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
This commit is contained in:
Alexey Potsetsuev
2025-09-12 23:21:54 +08:00
committed by GitHub
co-authored by mr-anton-t
parent e31ae9a439
commit b733f395d3
22 changed files with 152 additions and 148 deletions
@@ -1,6 +1,6 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
* Copyright (C) 2020-2025 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
@@ -35,12 +35,7 @@ export class SqlEditorGroupTabsBootstrap extends Bootstrap {
},
getItems: (context, items) => [...items, ACTION_TAB_CLOSE_SQL_RESULT_GROUP],
orderItems: (context, items) => {
const actions = menuExtractItems(items, [ACTION_TAB_CLOSE_SQL_RESULT_GROUP]);
if (actions.length > 0) {
items.push(...actions);
}
items.push(...menuExtractItems(items, [ACTION_TAB_CLOSE_SQL_RESULT_GROUP]));
return items;
},
});