fixed some issues

This commit is contained in:
saloui 2023-09-15 09:30:56 +02:00
parent 534dade401
commit 12b3b3ff76
6 changed files with 56 additions and 49 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
web/dist/index.html vendored
View File

@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI - Welcome</title> <title>LoLLMS WebUI - Welcome</title>
<script type="module" crossorigin src="/assets/index-9f6c9d5f.js"></script> <script type="module" crossorigin src="/assets/index-cdd3bd9d.js"></script>
<link rel="stylesheet" href="/assets/index-60e8ccd9.css"> <link rel="stylesheet" href="/assets/index-4c87e570.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@ -16,7 +16,12 @@
</RouterLink> </RouterLink>
<!-- GITHUB AND THEME BUTTONS --> <!-- GITHUB AND THEME BUTTONS -->
<div class="flex gap-3 flex-1 items-center justify-end"> <div class="flex gap-3 flex-1 items-center justify-end">
<div title="Connection status" :class="['dot', { 'dot-green': isConnected, 'dot-red': !isConnected }]"></div> <div v-if="isConnected" title="Connection status" class="text-green-500">
<i data-feather="zap"></i>
</div>
<div v-if="!isConnected" title="Connection status" class="text-red-500">
<i data-feather="zap-off"></i>
</div>
<a href="https://github.com/ParisNeo/lollms-webui" target="_blank"> <a href="https://github.com/ParisNeo/lollms-webui" target="_blank">
<div class="text-2xl hover:text-primary duration-150" title="Visit repository page"> <div class="text-2xl hover:text-primary duration-150" title="Visit repository page">

View File

@ -316,7 +316,8 @@ export const store = createStore({
if(v!=undefined){ if(v!=undefined){
index = v.findIndex(x => x.name == customModel); index = v.findIndex(x => x.name == customModel);
if(index!=-1){ if(index!=-1){
console.log("Found") index=j
console.log(`Found ${customModel} at index ${index}`)
break; break;
} }
} }

View File

@ -2335,6 +2335,7 @@ export default {
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
if (this.isLoading) { if (this.isLoading) {
this.$refs.toast.showToast("Loading... please wait", 4, false) this.$refs.toast.showToast("Loading... please wait", 4, false)
return
} }
if (model_object) { if (model_object) {
if (model_object.isInstalled) { if (model_object.isInstalled) {