view fix, add help icon to builder

This commit is contained in:
Martin McKeaveney 2021-06-17 10:47:01 +01:00
parent 48f41cd5ea
commit 09895b901a
4 changed files with 21 additions and 1 deletions

View File

@ -5,6 +5,7 @@
import { initialise } from "builderStore" import { initialise } from "builderStore"
import { NotificationDisplay } from "@budibase/bbui" import { NotificationDisplay } from "@budibase/bbui"
import { parse, stringify } from "qs" import { parse, stringify } from "qs"
import HelpIcon from "components/common/HelpIcon.svelte"
onMount(async () => { onMount(async () => {
await initialise() await initialise()
@ -16,6 +17,7 @@
<NotificationDisplay /> <NotificationDisplay />
<Router {routes} config={{ queryHandler }} /> <Router {routes} config={{ queryHandler }} />
<div class="modal-container" /> <div class="modal-container" />
<HelpIcon />
<style> <style>
.modal-container { .modal-container {

View File

@ -27,7 +27,7 @@
async function fetchViewData(name, field, groupBy, calculation) { async function fetchViewData(name, field, groupBy, calculation) {
const _tables = $tables.list const _tables = $tables.list
const allTableViews = _tables.map(table => table.views) const allTableViews = _tables.map(table => table.views)
const thisView = $allTableViews..filter( const thisView = allTableViews.filter(
views => views != null && views[name] != null views => views != null && views[name] != null
)[0] )[0]

View File

@ -0,0 +1,17 @@
<script>
import { Icon } from "@budibase/bbui"
</script>
<a target="_blank" href="https://github.com/Budibase/budibase/discussions">
<Icon hoverable name="Help" size="XXL" />
</a>
<style>
a {
color: inherit;
position: absolute;
bottom: var(--spacing-m);
right: var(--spacing-m);
border-radius: 55%;
}
</style>

View File

@ -0,0 +1 @@
This is the budibase internal database