diff --git a/templates/admin/cloudbrain/list.tmpl b/templates/admin/cloudbrain/list.tmpl index 0c049ad486..4c63b167a5 100755 --- a/templates/admin/cloudbrain/list.tmpl +++ b/templates/admin/cloudbrain/list.tmpl @@ -79,13 +79,20 @@ {{end}}
- {{if or (eq .JobType "DEBUG") (eq .JobType "SNN4IMAGENET") (eq .JobType "BRAINSCORE")}} + {{if eq .JobType "DEBUG"}} {{.DisplayJobName}} + {{else if or (eq .JobType "SNN4IMAGENET") (eq .JobType "BRAINSCORE")}} + + {{.DisplayJobName}} + {{else if eq .JobType "INFERENCE"}} - .context-menu { - z-index: 99; - position: absolute; - padding: 0; - border-radius: 4px; - border: 1px solid #e3e9ed; - -webkit-box-shadow: none; - box-shadow: none; - background: #fff; - display: none !important; - } - - .context-menu.active { - display: block !important; - } - - .context-menu-operation { - padding: 5px !important; - line-height: 1.78 !important; - } - - .context-menu-icon { - float: left !important; - margin: 0px 5px 0px 0px !important; - } -
diff --git a/web_src/js/features/contexmenu.js b/web_src/js/features/contexmenu.js index 318a4c25fd..ff827060b6 100644 --- a/web_src/js/features/contexmenu.js +++ b/web_src/js/features/contexmenu.js @@ -92,7 +92,7 @@ export default async function initContextMenu() { class Menu { constructor(param) { this.target = document.createElement('div') - this.target.classList.add("ui", "menu", "compact", "vertical", "context-menu") + this.target.classList.add("ui", "menu", "compact", "vertical", "context-menu-click") this.data = param.data this.active = false this.clickZ = this.click.bind(this) diff --git a/web_src/less/openi.less b/web_src/less/openi.less index 2a7d866652..6d0daba194 100644 --- a/web_src/less/openi.less +++ b/web_src/less/openi.less @@ -1025,4 +1025,30 @@ display: block; z-index: 9999; width:150; height: 80; +} + +.context-menu-click { + z-index: 99; + position: absolute; + padding: 0; + border-radius: 4px; + border: 1px solid #e3e9ed; + -webkit-box-shadow: none; + box-shadow: none; + background: #fff; + display: none !important; +} + +.context-menu-click.active { + display: block !important; +} + +.context-menu-operation { + padding: 5px !important; + line-height: 1.78 !important; +} + +.context-menu-icon { + float: left !important; + margin: 0px 5px 0px 0px !important; } \ No newline at end of file