1
0
Fork 0
mirror of synced 2024-09-30 17:18:14 +13:00

PR Feedback

This commit is contained in:
Gerard Burns 2023-06-27 15:49:17 +01:00
parent 363db1d4d9
commit c749209172
7 changed files with 10 additions and 29 deletions

View file

@ -23,7 +23,7 @@
}
const afterSave = ({ action }) => {
notifications.success(`Relationship ${action} successfully.`)
notifications.success(`Relationship ${action} successfully`)
dispatch("updatecolumns")
}

View file

@ -69,7 +69,7 @@
$goto(`./datasource/${datasourceId}`)
}
notifications.success(`Imported successfully.`)
notifications.success("Imported successfully")
return true
} catch (error) {
notifications.error("Error importing queries")

View file

@ -64,7 +64,7 @@
const afterSave = async ({ action }) => {
await tablesStore.fetch()
await datasourcesStore.fetch()
notifications.success(`Relationship ${action} successfully.`)
notifications.success(`Relationship ${action} successfully`)
}
const onError = async ({ action, err }) => {

View file

@ -18,7 +18,7 @@
)
await datasources.update({ datasource: updatedDatasource, integration })
notifications.success(
`Datasource ${updatedDatasource.name} updated successfully.`
`Datasource ${updatedDatasource.name} updated successfully`
)
} catch (error) {
notifications.error(`Error saving datasource: ${error.message}`)

View file

@ -15,7 +15,7 @@
async function updateDatasourceSchema() {
try {
await datasources.updateSchema(datasource, specificTables)
notifications.success(`Datasource ${name} tables updated successfully.`)
notifications.success(`Datasource ${name} tables updated successfully`)
await tables.fetch()
} catch (error) {
notifications.error(

View file

@ -1,30 +1,11 @@
<script>
import FontAwesomeIcon from "components/common/FontAwesomeIcon.svelte"
import { Body } from "@budibase/bbui"
import { ActionButton } from "@budibase/bbui"
export let title = ""
export let href = null
</script>
<a {href} class="tooltip" target="_blank" rel="noopener noreferrer">
<FontAwesomeIcon name="fa-solid fa-question-circle" />
<Body weight="bold">{title}</Body>
</a>
<style>
.tooltip {
display: flex;
align-items: center;
cursor: pointer;
}
.tooltip :global(p) {
color: var(--grey-9);
}
.tooltip :global(svg) {
margin-top: 1px;
margin-right: 5px;
color: var(--grey-7);
}
</style>
<ActionButton quiet icon="Help" on:click={() => window.open(href, "_blank")}>
{title}
</ActionButton>

View file

@ -100,7 +100,7 @@ export function createDatasourcesStore() {
const create = async ({ integration, config }) => {
const count = sourceCount(integration.name)
const nameModifier = count === 0 ? "" : `-${count + 1}`
const nameModifier = count === 0 ? "" : ` ${count + 1}`
const datasource = {
type: "datasource",