Merge branch 'baserow-open-tables-in-new-tabs2' into 'develop'

Baserow open tables in new tabs2

Closes #629

See merge request bramw/baserow!403
This commit is contained in:
Nigel Gott committed 2021-10-07 09:33:15 +00:00
commit efab41cf34
2 files changed
+18 -1

No files matched your search

+1
View File
@@ -3,6 +3,7 @@
## Unreleased
* Fixed a bug where the frontend would fail hard if a table with no views was accessed.
* Tables can now be opened in new browser tabs.
## Released (2021-10-05)
@@ -1,6 +1,11 @@
<template>
<li class="tree__sub" :class="{ active: table._.selected }">
<a class="tree__sub-link" @click="selectTable(database, table)">
<a
class="tree__sub-link"
:href="resolveTableHref(database, table)"
@mousedown.prevent
@click.prevent="selectTable(database, table)"
>
<Editable
ref="rename"
:value="table.name"
@@ -137,6 +142,17 @@ export default {
this.deleteLoading = false
},
resolveTableHref(database, table) {
const props = this.$nuxt.$router.resolve({
name: 'database-table',
params: {
databaseId: database.id,
tableId: table.id,
},
})
return props.href
},
},
}
</script>