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']
},
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() {
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() {
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: {},

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

@ -1,5 +1,5 @@
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 &&
/\bscope=|\bstate=/.test(window.location.search) &&
/\bcode=/.test(window.location.search)) {

Loading…
Cancel
Save