Browse Source

Remove leftover code and add proper comments to action types

gh-pages
Andrew Kingston 5 years ago
parent
commit
135c5df292
  1. 12
      packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/index.js
  2. 3
      packages/standard-components/src/DataProvider.svelte

12
packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/index.js

@ -5,11 +5,13 @@ import ExecuteQuery from "./ExecuteQuery.svelte"
import TriggerAutomation from "./TriggerAutomation.svelte" import TriggerAutomation from "./TriggerAutomation.svelte"
import ValidateForm from "./ValidateForm.svelte" import ValidateForm from "./ValidateForm.svelte"
// defines what actions are available, when adding a new one // Defines which actions are available to configure in the front end.
// the component is the setup panel for the action // Unfortunately the "name" property is used as the identifier so please don't
// NOTE that the "name" is used by the client library, // change them.
// so if you want to change it, you must change it client lib too // The client library removes any spaces when processing actions, so they can
// be considered as camel case too.
// There is technical debt here to sanitize all these and standardise them
// across the packages but it's a breaking change to existing apps.
export default [ export default [
{ {
name: "Save Row", name: "Save Row",

3
packages/standard-components/src/DataProvider.svelte

@ -17,9 +17,6 @@
const { API, styleable, Provider, ActionTypes } = getContext("sdk") const { API, styleable, Provider, ActionTypes } = getContext("sdk")
const component = getContext("component") const component = getContext("component")
const dataProviderApi = {
setLuceneQuery: newQuery => (query = newQuery),
}
// Loading flag every time data is being fetched // Loading flag every time data is being fetched
let loading = false let loading = false

Loading…
Cancel
Save