fixed version visualization

This commit is contained in:
Saifeddine ALOUI 2024-02-26 21:43:12 +01:00
parent dd774b36d5
commit 48826a2e31
3 changed files with 16 additions and 12 deletions

File diff suppressed because one or more lines are too long

2
web/dist/index.html vendored
View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI - Welcome</title>
<script type="module" crossorigin src="/assets/index-ddd37040.js"></script>
<script type="module" crossorigin src="/assets/index-fb00cba7.js"></script>
<link rel="stylesheet" href="/assets/index-20357d3b.css">
</head>
<body>

View File

@ -195,7 +195,9 @@ export const store = createStore({
try{
let res = await axios.get('/get_lollms_webui_version', {});
if (res) {
this.state.version = res.data.version
this.state.version = res.data
console.log("version res:", res)
console.log("version :", this.state.version)
}
}
@ -522,6 +524,17 @@ app.mixin({
this.$store.state.api_get_req = api_get_req
actionsExecuted = true;
console.log("Calling")
try{
this.$store.state.loading_infos = "Getting version"
this.$store.state.loading_progress = 30
await this.$store.dispatch('getVersion');
}
catch (ex){
console.log("Error cought:", ex)
}
try{
this.$store.state.loading_infos = "Loading Configuration"
this.$store.state.loading_progress = 10
@ -539,15 +552,6 @@ app.mixin({
catch (ex){
console.log("Error cought:", ex)
}
try{
this.$store.state.loading_infos = "Getting version"
this.$store.state.loading_progress = 30
await this.$store.dispatch('getVersion');
}
catch (ex){
console.log("Error cought:", ex)
}
try{
this.$store.state.loading_infos = "Getting Bindings list"