fixed some ui bugs

This commit is contained in:
Saifeddine ALOUI 2024-01-13 11:01:42 +01:00
parent ea595d72c4
commit 12c1639d1a
5 changed files with 12 additions and 10 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">
<title>LoLLMS WebUI - Welcome</title>
<script type="module" crossorigin src="/assets/index-81be3b6b.js"></script>
<link rel="stylesheet" href="/assets/index-e60129f2.css">
<script type="module" crossorigin src="/assets/index-6eb67e51.js"></script>
<link rel="stylesheet" href="/assets/index-796f5f6d.css">
</head>
<body>
<div id="app"></div>

View File

@ -220,7 +220,7 @@ export default {
},2000)
},
refreshPage() {
window.location.reload();
window.location.href = "/";
},
handleOk(inputText) {
console.log("Input text:", inputText);

View File

@ -3039,7 +3039,8 @@ export default {
console.log('install_binding', res)
if (res.data.status) {
this.$store.state.toast.showToast("Binding installed successfully!", 4, true)
this.$store.state.messageBox.showMessage("It is advised to reboot the application after installing a binding")
this.$store.state.messageBox.showMessage("It is advised to reboot the application after installing a binding.\nPage will refresh in 5s.")
setTimeout(()=>{window.location.href = "/"},5000) ;
} else {
this.$store.state.toast.showToast("Could not reinstall binding", 4, false)
}
@ -3195,7 +3196,7 @@ export default {
this.$store.state.toast.showToast("Binding settings updated successfully!", 4, true)
axios.get('/update_binding_settings').then((res) => {
this.$store.state.toast.showToast("Binding settings committed successfully!", 4, true)
window.location.reload();
window.location.href = "/";
})
} else {
this.$store.state.toast.showToast("Did not get binding settings responses.\n" + response, 4, false)