Ran yarn lint:fix
Ran yarn lint:fix as I forgot to do that
This commit is contained in:
parent
e190f932d8
commit
0859691afe
|
@ -27,8 +27,11 @@
|
|||
/>
|
||||
|
||||
<Label small />
|
||||
<Checkbox text="Do not display default notification" bind:value={parameters.notificationOverride} />
|
||||
<br>
|
||||
<Checkbox
|
||||
text="Do not display default notification"
|
||||
bind:value={parameters.notificationOverride}
|
||||
/>
|
||||
<br />
|
||||
<Checkbox text="Require confirmation" bind:value={parameters.confirm} />
|
||||
|
||||
{#if parameters.confirm}
|
||||
|
|
|
@ -95,8 +95,11 @@
|
|||
/>
|
||||
|
||||
<Label small />
|
||||
<Checkbox text="Do not display default notification" bind:value={parameters.notificationOverride} />
|
||||
<br>
|
||||
<Checkbox
|
||||
text="Do not display default notification"
|
||||
bind:value={parameters.notificationOverride}
|
||||
/>
|
||||
<br />
|
||||
<Checkbox text="Require confirmation" bind:value={parameters.confirm} />
|
||||
|
||||
{#if parameters.confirm}
|
||||
|
|
|
@ -44,8 +44,11 @@
|
|||
getOptionLabel={query => query.name}
|
||||
getOptionValue={query => query._id}
|
||||
/>
|
||||
<Checkbox text="Do not display default notification" bind:value={parameters.notificationOverride} />
|
||||
<br>
|
||||
<Checkbox
|
||||
text="Do not display default notification"
|
||||
bind:value={parameters.notificationOverride}
|
||||
/>
|
||||
<br />
|
||||
{#if parameters.queryId}
|
||||
<Checkbox text="Require confirmation" bind:value={parameters.confirm} />
|
||||
|
||||
|
|
|
@ -95,8 +95,11 @@
|
|||
/>
|
||||
|
||||
<Label small />
|
||||
<Checkbox text="Do not display default notification" bind:value={parameters.notificationOverride} />
|
||||
<br>
|
||||
<Checkbox
|
||||
text="Do not display default notification"
|
||||
bind:value={parameters.notificationOverride}
|
||||
/>
|
||||
<br />
|
||||
<Checkbox text="Require confirmation" bind:value={parameters.confirm} />
|
||||
|
||||
{#if parameters.confirm}
|
||||
|
|
|
@ -93,8 +93,11 @@
|
|||
{/if}
|
||||
|
||||
<Label small />
|
||||
<Checkbox text="Do not display default notification" bind:value={parameters.notificationOverride} />
|
||||
<br>
|
||||
<Checkbox
|
||||
text="Do not display default notification"
|
||||
bind:value={parameters.notificationOverride}
|
||||
/>
|
||||
<br />
|
||||
<Checkbox text="Require confirmation" bind:value={parameters.confirm} />
|
||||
|
||||
{#if parameters.confirm}
|
||||
|
|
|
@ -17,7 +17,8 @@ import { enrichDataBindings } from "./enrichDataBinding"
|
|||
import { Helpers } from "@budibase/bbui"
|
||||
|
||||
const saveRowHandler = async (action, context) => {
|
||||
const { fields, providerId, tableId, notificationOverride } = action.parameters
|
||||
const { fields, providerId, tableId, notificationOverride } =
|
||||
action.parameters
|
||||
let payload
|
||||
if (providerId) {
|
||||
payload = { ...context[providerId] }
|
||||
|
@ -34,8 +35,8 @@ const saveRowHandler = async (action, context) => {
|
|||
}
|
||||
try {
|
||||
const row = await API.saveRow(payload)
|
||||
|
||||
if (!notificationOverride){
|
||||
|
||||
if (!notificationOverride) {
|
||||
notificationStore.actions.success("Row saved")
|
||||
}
|
||||
|
||||
|
@ -52,7 +53,8 @@ const saveRowHandler = async (action, context) => {
|
|||
}
|
||||
|
||||
const duplicateRowHandler = async (action, context) => {
|
||||
const { fields, providerId, tableId, notificationOverride } = action.parameters
|
||||
const { fields, providerId, tableId, notificationOverride } =
|
||||
action.parameters
|
||||
if (providerId) {
|
||||
let payload = { ...context[providerId] }
|
||||
if (fields) {
|
||||
|
@ -67,7 +69,7 @@ const duplicateRowHandler = async (action, context) => {
|
|||
delete payload._rev
|
||||
try {
|
||||
const row = await API.saveRow(payload)
|
||||
if (!notificationOverride){
|
||||
if (!notificationOverride) {
|
||||
notificationStore.actions.success("Row saved")
|
||||
}
|
||||
|
||||
|
@ -89,7 +91,7 @@ const deleteRowHandler = async action => {
|
|||
if (tableId && rowId) {
|
||||
try {
|
||||
await API.deleteRow({ tableId, rowId, revId })
|
||||
if (!notificationOverride){
|
||||
if (!notificationOverride) {
|
||||
notificationStore.actions.success("Row deleted")
|
||||
}
|
||||
|
||||
|
@ -112,7 +114,7 @@ const triggerAutomationHandler = async action => {
|
|||
automationId: action.parameters.automationId,
|
||||
fields,
|
||||
})
|
||||
if (!notificationOverride){
|
||||
if (!notificationOverride) {
|
||||
notificationStore.actions.success("Automation triggered")
|
||||
}
|
||||
} catch (error) {
|
||||
|
@ -128,7 +130,8 @@ const navigationHandler = action => {
|
|||
}
|
||||
|
||||
const queryExecutionHandler = async action => {
|
||||
const { datasourceId, queryId, queryParams, notificationOverride } = action.parameters
|
||||
const { datasourceId, queryId, queryParams, notificationOverride } =
|
||||
action.parameters
|
||||
try {
|
||||
const query = await API.fetchQueryDefinition(queryId)
|
||||
if (query?.datasourceId == null) {
|
||||
|
@ -144,7 +147,7 @@ const queryExecutionHandler = async action => {
|
|||
// Trigger a notification and invalidate the datasource as long as this
|
||||
// was not a readable query
|
||||
if (!query.readable) {
|
||||
if (!notificationOverride){
|
||||
if (!notificationOverride) {
|
||||
notificationStore.actions.success("Query executed successfully")
|
||||
}
|
||||
await dataSourceStore.actions.invalidateDataSource(query.datasourceId)
|
||||
|
|
Loading…
Reference in New Issue