diff --git a/client/components/ui/InputDropdown.vue b/client/components/ui/InputDropdown.vue
index b478da42..0b0dd3c2 100644
--- a/client/components/ui/InputDropdown.vue
+++ b/client/components/ui/InputDropdown.vue
@@ -4,7 +4,7 @@
@@ -37,6 +37,10 @@ export default {
items: {
type: Array,
default: () => []
+ },
+ editable: {
+ type: Boolean,
+ default: true
}
},
data() {
diff --git a/client/components/ui/ToggleSwitch.vue b/client/components/ui/ToggleSwitch.vue
new file mode 100644
index 00000000..8dddbbb2
--- /dev/null
+++ b/client/components/ui/ToggleSwitch.vue
@@ -0,0 +1,34 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/client/layouts/default.vue b/client/layouts/default.vue
index 4f31bee5..df14e923 100644
--- a/client/layouts/default.vue
+++ b/client/layouts/default.vue
@@ -168,6 +168,11 @@ export default {
},
mounted() {
this.initializeSocket()
+
+ if (this.$route.query.error) {
+ this.$toast.error(this.$route.query.error)
+ this.$router.replace(this.$route.path)
+ }
}
}
\ No newline at end of file
diff --git a/client/package.json b/client/package.json
index 54b2e75b..206730b0 100644
--- a/client/package.json
+++ b/client/package.json
@@ -1,6 +1,6 @@
{
"name": "audiobookshelf-client",
- "version": "0.9.84-beta",
+ "version": "0.9.85-beta",
"description": "Audiobook manager and player",
"main": "index.js",
"scripts": {
diff --git a/client/pages/account.vue b/client/pages/account.vue
index a9116647..5b95c5f8 100644
--- a/client/pages/account.vue
+++ b/client/pages/account.vue
@@ -65,6 +65,9 @@ export default {
if (this.newPassword !== this.confirmPassword) {
return this.$toast.error('New password and confirm password do not match')
}
+ if (this.password === this.newPassword) {
+ return this.$toast.error('Password and New Password cannot be the same')
+ }
this.changingPassword = true
this.$axios
.$patch('/api/user/password', {
diff --git a/client/pages/config/index.vue b/client/pages/config/index.vue
index 92f4afe5..951a012d 100644
--- a/client/pages/config/index.vue
+++ b/client/pages/config/index.vue
@@ -15,13 +15,21 @@
Username |
Account Type |
Created At |
+
|
- {{ user.username }} |
+
+ {{ user.username }} ({{ user.id }})
+ |
{{ user.type }} |
{{ new Date(user.createdAt).toISOString() }}
|
+
+
+ delete
+
+ |
@@ -59,15 +67,24 @@