Browse Source

refactor: remove unused code

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/765/head
Pranav C 3 years ago
parent
commit
fedae0433f
  1. 6
      packages/nc-gui/pages/user/authentication/signup/index.vue
  2. 2
      packages/nc-gui/plugins/projectLoader.js

6
packages/nc-gui/pages/user/authentication/signup/index.vue

@ -278,13 +278,13 @@ export default {
return this.$store.getters['users/GtrUser'] return this.$store.getters['users/GtrUser']
}, },
type() { type() {
return this.$store.state.project.projectInfo && this.$store.state.project.projectInfo.authType return this.$store.state.project && this.$store.state.project.projectInfo && this.$store.state.project.projectInfo.authType
}, },
firstUser() { firstUser() {
return this.$store.state.project.projectInfo && this.$store.state.project.projectInfo.firstUser return this.$store.state.project && this.$store.state.project.projectInfo && this.$store.state.project.projectInfo.firstUser
}, },
googleAuthEnabled() { googleAuthEnabled() {
return this.$store.state.project.projectInfo && this.$store.state.project.projectInfo.googleAuthEnabled return this.$store.state.project && this.$store.state.project.projectInfo && this.$store.state.project.projectInfo.googleAuthEnabled
} }
}, },
watch: {}, watch: {},

2
packages/nc-gui/plugins/projectLoader.js

@ -1,5 +1,5 @@
export default async({ store, redirect, $axios, $toast, route }) => { export default async({ store, redirect, $axios, $toast, route }) => {
if (!route.path || !route.path.startsWith('/nc/')) { await store.dispatch('plugins/pluginPostInstall', 'Branding') } // if (!route.path || !route.path.startsWith('/nc/')) { await store.dispatch('plugins/pluginPostInstall', 'Branding') }
if (window.location.search && if (window.location.search &&
/\bscope=|\bstate=/.test(window.location.search) && /\bscope=|\bstate=/.test(window.location.search) &&
/\bcode=/.test(window.location.search)) { /\bcode=/.test(window.location.search)) {

Loading…
Cancel
Save