Update MountedPersonalities.vue

This commit is contained in:
Saifeddine ALOUI 2024-11-12 09:19:30 +01:00 committed by GitHub
parent 1439c72fbc
commit 4c29eba976
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,23 +179,21 @@ export default {
if (response && response.data) { if (response && response.data) {
console.log('personality set with new settings', response.data) console.log('personality set with new settings', response.data)
this.$refs.toast.showToast("Personality settings updated successfully!", 4, true) this.$store.state.toast.showToast("Personality settings updated successfully!", 4, true)
} else { } else {
this.$refs.toast.showToast("Did not get Personality settings responses.\n" + response, 4, false) this.$store.state.toast.showToast("Did not get Personality settings responses.\n" + response, 4, false)
} }
}) })
} catch (error) { } catch (error) {
this.$refs.toast.showToast("Did not get Personality settings responses.\n Endpoint error: " + error.message, 4, false) this.$store.state.toast.showToast("Did not get Personality settings responses.\n Endpoint error: " + error.message, 4, false)
} }
}) })
} else { } else {
this.$refs.toast.showToast("Personality has no settings", 4, false) this.$store.state.toast.showToast("Personality has no settings", 4, false)
} }
@ -204,7 +202,7 @@ export default {
} catch (error) { } catch (error) {
this.$refs.toast.showToast("Could not open personality settings. Endpoint error: " + error.message, 4, false) this.$store.state.toast.showToast("Could not open personality settings. Endpoint error: " + error.message, 4, false)
} }
}, },