Fix layout block actions + z index editor sidebar
This commit is contained in:
parent
e5dc3f1bd4
commit
b7c4f8e010
|
@ -527,8 +527,6 @@ class FormPropertyLogicRule implements Rule, DataAwareRule
|
|||
return;
|
||||
}
|
||||
|
||||
// TODO: find what's causing the issue when saving this validation rule :(
|
||||
|
||||
$type = self::CONDITION_MAPPING[$typeField]['comparators'][$operator]['expected_type'];
|
||||
|
||||
if (is_array($type)) {
|
||||
|
@ -591,12 +589,12 @@ class FormPropertyLogicRule implements Rule, DataAwareRule
|
|||
}
|
||||
}
|
||||
|
||||
private function checkActions($conditions)
|
||||
private function checkActions($actions)
|
||||
{
|
||||
if (is_array($conditions) && count($conditions) > 0) {
|
||||
foreach($conditions as $val){
|
||||
if (is_array($actions) && count($actions) > 0) {
|
||||
foreach($actions as $val){
|
||||
if (!in_array($val, static::ACTIONS_VALUES) ||
|
||||
(in_array($this->field["type"], ['nf-text', 'nf-code', 'nf-page-break', 'nf-divider', 'nf-image']) && !in_array($val, ['hide-block'])) ||
|
||||
(in_array($this->field["type"], ['nf-text', 'nf-code', 'nf-page-break', 'nf-divider', 'nf-image']) && !in_array($val, ['hide-block', 'show-block'])) ||
|
||||
(isset($this->field["hidden"]) && $this->field["hidden"] && !in_array($val, ['show-block', 'require-answer'])) ||
|
||||
(isset($this->field["required"]) && $this->field["required"] && !in_array($val, ['make-it-optional', 'hide-block', 'disable-block'])) ||
|
||||
(isset($this->field["disabled"]) && $this->field["disabled"] && !in_array($val, ['enable-block', 'require-answer', 'make-it-optional']))
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<transition @leave="(el,done) => sidebarMotion?.leave(done)">
|
||||
<div v-if="show" ref="sidebar"
|
||||
class="absolute shadow-lg shadow-gray-800/30 top-0 h-[calc(100vh-53px)] right-0 lg:shadow-none lg:relative bg-white w-full md:w-1/2 lg:w-2/5 border-l overflow-y-scroll md:max-w-[20rem] flex-shrink-0 z-50"
|
||||
class="absolute shadow-lg shadow-gray-800/30 top-0 h-[calc(100vh-53px)] right-0 lg:shadow-none lg:relative bg-white w-full md:w-1/2 lg:w-2/5 border-l overflow-y-scroll md:max-w-[20rem] flex-shrink-0 z-30"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue