mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(edit-names) menu
This commit is contained in:
parent
210f49cb4a
commit
4293eadf63
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
/* global CloudCmd, DOM, MenuIO */
|
||||
/* global CloudCmd, DOM */
|
||||
|
||||
const currify = require('currify/legacy');
|
||||
const exec = require('execon');
|
||||
|
|
@ -13,7 +13,7 @@ CloudCmd.EditNames = function EditNamesProto(callback) {
|
|||
const alert = currify(Dialog.alert, TITLE);
|
||||
|
||||
const EditNames = this;
|
||||
let Menu;
|
||||
let Menu, MenuIO;
|
||||
const ConfigView = {
|
||||
beforeClose: () => {
|
||||
exec.ifExist(Menu, 'hide');
|
||||
|
|
@ -144,6 +144,7 @@ CloudCmd.EditNames = function EditNamesProto(callback) {
|
|||
event.preventDefault();
|
||||
|
||||
!Menu && DOM.loadRemote('menu', (error) => {
|
||||
MenuIO = window.MenuIO;
|
||||
let noFocus;
|
||||
const options = {
|
||||
beforeShow: (params) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue