fix: Update color for the action button used in card messages (#5740)

This commit is contained in:
Sivin Varghese 2022-10-26 04:47:05 +05:30 committed by GitHub
parent bedb2cab63
commit 352558dd11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@
:key="action.uri" :key="action.uri"
class="action-button button" class="action-button button"
:href="action.uri" :href="action.uri"
:style="{ background: widgetColor, borderColor: widgetColor }"
target="_blank" target="_blank"
rel="noopener nofollow noreferrer" rel="noopener nofollow noreferrer"
> >
@ -13,13 +14,14 @@
v-else v-else
:key="action.payload" :key="action.payload"
class="action-button button" class="action-button button"
:style="{ borderColor: widgetColor, color: widgetColor }"
@click="onClick" @click="onClick"
> >
{{ action.text }} {{ action.text }}
</button> </button>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex';
export default { export default {
components: {}, components: {},
props: { props: {
@ -29,6 +31,9 @@ export default {
}, },
}, },
computed: { computed: {
...mapGetters({
widgetColor: 'appConfig/getWidgetColor',
}),
isLink() { isLink() {
return this.action.type === 'link'; return this.action.type === 'link';
}, },