From 85d925aeadc58bfcec68ca518336a1a5b29f3838 Mon Sep 17 00:00:00 2001 From: ebolam Date: Sat, 13 Aug 2022 09:51:20 -0400 Subject: [PATCH] Better Icon placement in AI load menu --- static/application.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/application.js b/static/application.js index 4ba8e0b2..5b469b2f 100644 --- a/static/application.js +++ b/static/application.js @@ -1074,11 +1074,12 @@ function buildLoadModelList(ar, menu, breadcrumbs, showdelete) { html = "
\
" //if the menu item is a link to another menu - if(ar[i][3]) { + console.log(ar[i]); + if((ar[i][3]) || (['Load a model from its directory', 'Load an old GPT-2 model (eg CloverEdition)'].includes(ar[i][0]))) { html = html + "" } else { //this is a model - html = html + "
" + html = html + "
   " } //now let's do the delete icon if applicable