This commit is contained in:
mike12345567 2020-10-16 09:54:35 +01:00
parent 82a9bbb478
commit 79832e5d4c
3 changed files with 21 additions and 21 deletions

View File

@ -27,15 +27,12 @@
const joinPath = join("/") const joinPath = join("/")
const normalizedName = name => const normalizedName = name =>
pipe( pipe(name, [
name, trimCharsStart("./"),
[ trimCharsStart("~/"),
trimCharsStart("./"), trimCharsStart("../"),
trimCharsStart("~/"), trimChars(" "),
trimCharsStart("../"), ])
trimChars(" "),
]
)
const changeScreen = screen => { const changeScreen = screen => {
store.setCurrentScreen(screen.props._instanceName) store.setCurrentScreen(screen.props._instanceName)

View File

@ -81,19 +81,22 @@
autoHeight: true, autoHeight: true,
} }
}) })
columnDefs = [...columnDefs, { columnDefs = [
headerName: 'Details', ...columnDefs,
field: '_id', {
headerName: "Details",
field: "_id",
width: 25, width: 25,
flex: 0, flex: 0,
editable: false, editable: false,
sortable: false, sortable: false,
cellRenderer: getRenderer({ cellRenderer: getRenderer({
type: '_id', type: "_id",
options: detailUrl options: detailUrl,
}), }),
autoHeight: true, autoHeight: true,
}] },
]
dataLoaded = true dataLoaded = true
} }
}) })

View File

@ -1,12 +1,12 @@
<script> <script>
import { Icon } from '@budibase/bbui' import { Icon } from "@budibase/bbui"
export let url export let url
</script> </script>
<a href={url}><Icon name="view" /></a> <a href={url}><Icon name="view" /></a>
<style> <style>
a { a {
color: var(--grey-6) color: var(--grey-6);
} }
</style> </style>