live change link-example color by selected color

This commit is contained in:
andy.lee 2024-10-31 15:24:42 +08:00 committed by Francesco Torchia
parent dc74441d26
commit eaa8fd7d92
No known key found for this signature in database
GPG Key ID: E6D011B7415D4393

View File

@ -85,6 +85,9 @@ export default {
const schema = this.$store.getters[`management/schemaFor`](MANAGEMENT.SETTING);
return schema?.resourceMethods?.includes('PUT') ? _EDIT : _VIEW;
},
customLinkColor() {
return { color: this.uiLinkColor };
}
},
mounted() {
@ -320,7 +323,7 @@ export default {
component-testid="link"
/>
<span class="col link-example">
<a>
<a :style="customLinkColor">
{{ t('branding.linkColor.example') }}
</a>
</span>