mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-02-04 06:51:44 +00:00
live change link-example color by selected color
This commit is contained in:
parent
dc74441d26
commit
eaa8fd7d92
@ -85,6 +85,9 @@ export default {
|
|||||||
const schema = this.$store.getters[`management/schemaFor`](MANAGEMENT.SETTING);
|
const schema = this.$store.getters[`management/schemaFor`](MANAGEMENT.SETTING);
|
||||||
|
|
||||||
return schema?.resourceMethods?.includes('PUT') ? _EDIT : _VIEW;
|
return schema?.resourceMethods?.includes('PUT') ? _EDIT : _VIEW;
|
||||||
|
},
|
||||||
|
customLinkColor() {
|
||||||
|
return { color: this.uiLinkColor };
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -320,7 +323,7 @@ export default {
|
|||||||
component-testid="link"
|
component-testid="link"
|
||||||
/>
|
/>
|
||||||
<span class="col link-example">
|
<span class="col link-example">
|
||||||
<a>
|
<a :style="customLinkColor">
|
||||||
{{ t('branding.linkColor.example') }}
|
{{ t('branding.linkColor.example') }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user