1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Adjust menu icons and set defaultAction flags

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-08-04 11:37:03 +03:00
parent 098cabe0e0
commit 3491745eb9

View File

@ -19,8 +19,6 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
import React from "react";
import { CreateNewFolderOutlined, NoteAdd } from "@material-ui/icons";
import { kubernetesClusterCategory } from "../../common/catalog-entities";
import { addClusterURL, preferencesURL } from "../../common/routes";
import { PathPicker } from "../components/path-picker";
@ -51,8 +49,9 @@ export function initCatalogCategoryRegistryEntries() {
if (isWindows) {
ctx.menuItems.push(
{
icon: () => <CreateNewFolderOutlined fontSize="large" />,
icon: "create_new_folder",
title: "Sync kubeconfig folders(s)",
defaultAction: true,
onClick: async () => {
await PathPicker.pick({
label: "Sync folders(s)",
@ -64,7 +63,7 @@ export function initCatalogCategoryRegistryEntries() {
},
},
{
icon: () => <NoteAdd fontSize="large" />,
icon: "note_add",
title: "Sync kubeconfig file(s)",
onClick: async () => {
await PathPicker.pick({
@ -80,8 +79,9 @@ export function initCatalogCategoryRegistryEntries() {
} else {
ctx.menuItems.push(
{
icon: "settings",
icon: "create_new_folder",
title: "Sync kubeconfig(s)",
defaultAction: true,
onClick: async () => {
await PathPicker.pick({
label: "Sync file(s)",