diff --git a/src/views/project/Project_detail.vue b/src/views/project/Project_detail.vue index 178bbbeada3fde591927aa495cf82055fb3f8121..ad24ad07663e5f0b2635d1e019ddabf63c7c8236 100644 --- a/src/views/project/Project_detail.vue +++ b/src/views/project/Project_detail.vue @@ -211,7 +211,6 @@ > <i class="inverted grey copy alternate icon"></i> </router-link> - {{isImporting(type)}} <div v-if="isImporting(type)" class="import-message" @@ -258,8 +257,7 @@ type.geom_type === 'point' && permissions && permissions.can_create_feature_type && - isOffline() != true && - !isImporting(type) + isOffline() != true " class=" ui @@ -685,7 +683,8 @@ export default { project_slug: this.$route.params.slug }); }, this.$store.state.configuration.VUE_APP_RELOAD_INTERVAL)); - } else if (newValue && !newValue.some(el => el.status === 'pending')) { + } else if (newValue && !newValue.some(el => el.status === 'pending') && this.reloadIntervalId) { + this.GET_PROJECT_FEATURE_TYPES(this.project.slug); this.CLEAR_RELOAD_INTERVAL_ID(); } } @@ -706,6 +705,9 @@ export default { ...mapActions('feature', [ 'GET_PROJECT_FEATURES' ]), + ...mapActions('feature_type', [ + 'GET_PROJECT_FEATURE_TYPES' + ]), refreshId() { return "?ver=" + Math.random(); },