enhanced databases adding/removing

This commit is contained in:
Saifeddine ALOUI 2024-12-27 11:14:07 +01:00
parent d050f2f023
commit 618be263d5
4 changed files with 11 additions and 8 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 @@
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI</title>
<script type="module" crossorigin src="/assets/index-enlEQyL4.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CoOIrkQe.css">
<script type="module" crossorigin src="/assets/index-By7bItK0.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-C2FoYcNI.css">
</head>
<body>
<div id="app"></div>

View File

@ -1134,7 +1134,7 @@
>
<label class="mr-2">Mounted</label>
<button @click="removeDataSource(index)"
<button @click="removeDataBase(index)"
class="ml-2 px-2 py-1 bg-red-500 text-white hover:bg-red-300 rounded flex items-center"
title="Remove this data source">
<svg class="w-5 h-5 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@ -4596,12 +4596,15 @@ export default {
}
// Add new entry with default values including alias
this.configFile.remote_databases.push("new_database::lightrag::localhost");
this.configFile.remote_databases.push("new_database::lightrag::http://localhost:9621/");
this.settingsChanged = true;
},
removeDataBase(index) {
console.log("Removing remote database")
this.configFile.remote_databases.splice(index, 1);
console.log(this.configFile.remote_databases)
this.settingsChanged = true;
},
fetchElevenLabsVoices() {