fix lint issues
This commit is contained in:
parent
519d2bd0fb
commit
a77b386f6e
|
@ -160,5 +160,4 @@ Cypress.Commands.add("createScreen", (screenName, route) => {
|
|||
cy.get("input").eq(1).type(route)
|
||||
cy.get(".spectrum-Button--cta").click()
|
||||
})
|
||||
|
||||
})
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
if (!event.detail.startsWith("/")) {
|
||||
route = "/" + event.detail
|
||||
}
|
||||
route = route.replaceAll(' ', '_')
|
||||
route = route.replaceAll(" ", "_")
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -22,8 +22,7 @@
|
|||
let bindingDrawer
|
||||
let anchor
|
||||
let valid
|
||||
let dispatch = createEventDispatcher();
|
||||
|
||||
let dispatch = createEventDispatcher()
|
||||
|
||||
$: bindableProperties = getBindableProperties(
|
||||
$currentAsset,
|
||||
|
@ -55,9 +54,9 @@
|
|||
}
|
||||
|
||||
if (typeof innerVal === "string") {
|
||||
dispatch('change', replaceBindings(innerVal))
|
||||
dispatch("change", replaceBindings(innerVal))
|
||||
} else {
|
||||
dispatch('change', innerVal)
|
||||
dispatch("change", innerVal)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
export let componentInstance
|
||||
|
||||
function setAssetProps(name, value, parser) {
|
||||
if (parser && typeof parser === 'function') {
|
||||
if (parser && typeof parser === "function") {
|
||||
value = parser(value)
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,12 @@
|
|||
|
||||
const screenSettings = [
|
||||
// { key: "description", label: "Description", control: Input },
|
||||
{ key: "routing.route", label: "Route", control: Input, parser: (val) => val.replaceAll(' ', '_') },
|
||||
{
|
||||
key: "routing.route",
|
||||
label: "Route",
|
||||
control: Input,
|
||||
parser: val => val.replaceAll(" ", "_"),
|
||||
},
|
||||
{ key: "routing.roleId", label: "Access", control: RoleSelect },
|
||||
{ key: "layoutId", label: "Layout", control: LayoutSelect },
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue