mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Consolidate separators of application menu in single file
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
1 parent
88ea157352
commit
31de88dae4
3 files changed
+21
-29
No files matched your search
-24
@@ -1,24 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
|
||||
import applicationMenuItemInjectionToken from "../../application-menu-item-injection-token";
|
||||
|
||||
const id = "separator-after-extensions";
|
||||
|
||||
const separatorAfterExtensionsInjectable = getInjectable({
|
||||
id,
|
||||
|
||||
instantiate: () => ({
|
||||
id,
|
||||
parentId: "primary-for-mac",
|
||||
type: "separator" as const,
|
||||
orderNumber: 70,
|
||||
}),
|
||||
|
||||
injectionToken: applicationMenuItemInjectionToken,
|
||||
});
|
||||
|
||||
export default separatorAfterExtensionsInjectable;
|
||||
+13
-2
@@ -6,7 +6,7 @@ import { getInjectable } from "@ogre-tools/injectable";
|
||||
|
||||
import applicationMenuItemInjectionToken from "../../application-menu-item-injection-token";
|
||||
|
||||
const separatorAfterCheckForUpdatesInjectable = getInjectable({
|
||||
export const separatorAfterCheckForUpdatesInjectable = getInjectable({
|
||||
id: "separator-after-check-for-updates",
|
||||
|
||||
instantiate: () => ({
|
||||
@@ -19,4 +19,15 @@ const separatorAfterCheckForUpdatesInjectable = getInjectable({
|
||||
injectionToken: applicationMenuItemInjectionToken,
|
||||
});
|
||||
|
||||
export default separatorAfterCheckForUpdatesInjectable;
|
||||
export const separatorAfterExtensionsInjectable = getInjectable({
|
||||
id: "separator-after-extensions",
|
||||
|
||||
instantiate: () => ({
|
||||
id: "separator-after-extensions",
|
||||
parentId: "primary-for-mac",
|
||||
type: "separator" as const,
|
||||
orderNumber: 70,
|
||||
}),
|
||||
|
||||
injectionToken: applicationMenuItemInjectionToken,
|
||||
});
|
||||
Reference in new issue
Block a user