-
-
-
+
+
+
+
+ Register
@@ -18,29 +19,26 @@
+
+
+
\ No newline at end of file
diff --git a/src/components/Settings.vue b/src/components/Settings.vue
index 14bf5af..58e9f98 100644
--- a/src/components/Settings.vue
+++ b/src/components/Settings.vue
@@ -6,22 +6,24 @@
Sign in to your plex account to get information about recently added movies and to see your watch history
Change password
@@ -45,11 +47,12 @@
import storage from '@/storage.js'
import SeasonedInput from '@/components/ui/SeasonedInput.vue'
import SeasonedButton from '@/components/ui/SeasonedButton.vue'
+import SeasonedMessages from '@/components/ui/SeasonedMessages.vue'
import { plexAuthenticate } from '@/api.js'
export default {
- components: { SeasonedInput, SeasonedButton },
+ components: { SeasonedInput, SeasonedButton, SeasonedMessages },
data(){
return{
userLoggedIn: '',
@@ -73,11 +76,12 @@ export default {
plexAuthenticate(username, password)
.then((resp) => {
- let data = resp.data;
- console.log('response from plex:', data.user)
+ let data = resp.data;
+ this.messages.push({ type: 'success', title: 'Authenticated with plex', message: 'Successfully linked plex account with seasoned request' })
+ // console.log('response from plex:', data.user)
})
.catch((error) => {
- console.log('error: ', error)
+ this.messages.push({ type: 'error', title: 'Something went wrong', message: error.message })
})
}
},
diff --git a/src/components/Signin.vue b/src/components/Signin.vue
index 46637e2..f8ce176 100644
--- a/src/components/Signin.vue
+++ b/src/components/Signin.vue
@@ -2,10 +2,8 @@