diff --git a/components/LoadingIcon.vue b/components/LoadingIcon.vue new file mode 100644 index 0000000..f78bc46 --- /dev/null +++ b/components/LoadingIcon.vue @@ -0,0 +1,21 @@ + \ No newline at end of file diff --git a/netlify.toml b/netlify.toml index eb21f2a..7ed7269 100644 --- a/netlify.toml +++ b/netlify.toml @@ -30,4 +30,7 @@ [[redirects]] from = "/*" to = "https://testing.2cubedtest.com/:splat" - status = 200 \ No newline at end of file + status = 200 + force = true + headers = {Access-Control-Allow-Origin = "*", Access-Control-Allow-Headers = "Content-Type, *", Access-Control-Allow-Methods = "GET, POST", Access-Control-Allow-Credentials= "true"} + \ No newline at end of file diff --git a/pages/logout.vue b/pages/logout.vue index 0421a2b..8c24ddc 100644 --- a/pages/logout.vue +++ b/pages/logout.vue @@ -1,7 +1,8 @@ @@ -11,7 +12,7 @@ import { gql } from 'nuxt-graphql-request' export default { data() { return { - hasLoggedOut: false + hasLoggedOut: null } }, methods: { @@ -24,12 +25,7 @@ export default { } ` const { logout } = await this.$graphql.default.request(query) - // SUCCESS - if (logout.status == 'SUCCESS') { - this.hasLoggedOut = true - } - - console.log(logout.status) + this.hasLoggedOut = logout.status == 'SUCCESS' ? true : false } }, mounted() {