Skip to content

Commit

Permalink
remove dupplicate on subitem
Browse files Browse the repository at this point in the history
  • Loading branch information
PrestaSafe committed Mar 28, 2024
1 parent 636c94a commit 6eabc44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion _dev/src/components/MenuItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const highLightBlock = () => {
<ButtonLight class="handle" v-if="props.config" icon="CogIcon" />
<ButtonLight class="handle" v-if="props.is_child" @click.prevent="removeSubState" icon="TrashIcon" />
<ButtonLight class="handle" v-if="!props.is_child" @click.prevent="removeState" icon="TrashIcon" />
<ButtonLight class="handle cursor-move" @click="openModal" icon="DocumentDuplicateIcon" />
<ButtonLight v-if="!props.is_child" class="handle cursor-move" @click="openModal" icon="DocumentDuplicateIcon" />
<LanguageModal v-if="showModal" :id_prettyblocks="props.element.id_prettyblocks" :languages="languages" @closeModal="closeModal" @selectLanguages="selectLanguages" />
<!-- <ButtonLight @click="disabled = !disabled" :icon="disabled ? 'EyeOffIcon' : 'EyeIcon'" /> -->
<ButtonLight class="handle cursor-move" icon="ArrowsUpDownIcon" />
Expand Down
2 changes: 0 additions & 2 deletions classes/TplSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ private static function getVars()
{
$cache_id = 'PrettyBlocks::getVars';
if (!Cache::isStored($cache_id)) {
// $smarty_vars = Context::getContext()->smarty->getTemplateVars();
$smarty_vars = Hook::exec('ActionFrontControllerSetVariables', [], null, true);
// dump($smarty_vars);
Cache::store($cache_id, $smarty_vars);
}

Expand Down

0 comments on commit 6eabc44

Please sign in to comment.