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