Sync page edit icons

This commit is contained in:
Jože Fortun
2023-09-18 15:21:03 +02:00
parent d2cc2c8dc3
commit d5f8faac5a
2 changed files with 17 additions and 1 deletions
@@ -79,7 +79,7 @@
style="margin-left:2px;"
>
<font-awesome-icon
:icon="['fas', 'pen']"
:icon="['far', 'edit']"
/>
</b-button>
</b-button-group>
@@ -482,6 +482,16 @@
v-model="layoutEditor.layout.config.visibility.expression"
:placeholder="$t('page-layout.condition.placeholder')"
/>
<b-input-group-append>
<b-button
variant="outline-secondary"
:href="documentationURL"
class="d-flex justify-content-center align-items-center"
target="_blank"
>
?
</b-button>
</b-input-group-append>
</b-input-group>
<b-form-text>
@@ -1000,6 +1010,12 @@ export default {
return this.icon.type === 'link' ? this.icon.src : this.makeAttachmentUrl(this.icon.src)
},
documentationURL () {
// eslint-disable-next-line no-undef
const [year, month] = VERSION.split('.')
return `https://docs.cortezaproject.org/corteza-docs/${year}.${month}/integrator-guide/compose-configuration/page-layouts.html#visibility-condition`
},
currentLayoutRoles: {
get () {
if (!this.layoutEditor.layout) {