diff --git a/cypress/e2e/tables-archive.cy.js b/cypress/e2e/tables-archive.cy.js index 673dc3011b..0db3988b10 100644 --- a/cypress/e2e/tables-archive.cy.js +++ b/cypress/e2e/tables-archive.cy.js @@ -11,6 +11,7 @@ describe('Archive tables/views', () => { beforeEach(function() { cy.login(localUser) cy.visit('apps/tables') + cy.wait(1000) }) it('can archive tables', () => { diff --git a/cypress/e2e/tables-favorite.cy.js b/cypress/e2e/tables-favorite.cy.js index 8c1d0b918e..4a754848bf 100644 --- a/cypress/e2e/tables-favorite.cy.js +++ b/cypress/e2e/tables-favorite.cy.js @@ -11,6 +11,7 @@ describe('Favorite tables/views', () => { beforeEach(function() { cy.login(localUser) cy.visit('apps/tables') + cy.wait(1000) }) it('can favorite tables', () => { diff --git a/src/App.vue b/src/App.vue index 383b2b884a..52fd243aa8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -38,9 +38,9 @@ export default { } }, computed: { - ...mapState(['tablesLoading']), + ...mapState(['tablesLoading', 'contextsLoading']), somethingIsLoading() { - return this.tablesLoading || this.loading + return this.tablesLoading || this.contextsLoading || this.loading }, }, watch: { @@ -50,6 +50,7 @@ export default { }, async created() { await this.$store.dispatch('loadTablesFromBE') + await this.$store.dispatch('getAllContexts') await this.$store.dispatch('loadViewsSharedWithMeFromBE') this.routing(this.$router.currentRoute) this.observeAppContent() @@ -67,6 +68,9 @@ export default { } else if (currentRoute.path.startsWith('/view/')) { this.$store.commit('setActiveViewId', parseInt(currentRoute.params.viewId)) this.setPageTitle(this.$store.getters.activeView.title) + } else if (currentRoute.path.startsWith('/application/')) { + this.$store.commit('setActiveContextId', parseInt(currentRoute.params.contextId)) + this.setPageTitle(this.$store.getters.activeContext.name) } }, setPageTitle(title) { diff --git a/src/modules/main/sections/DataTable.vue b/src/modules/main/sections/DataTable.vue index 969d86fdb0..9b1ee65478 100644 --- a/src/modules/main/sections/DataTable.vue +++ b/src/modules/main/sections/DataTable.vue @@ -1,7 +1,7 @@
@@ -76,6 +76,7 @@ +