0

I am trying to name a class based on the value i have in campaignstatus value but when i added the or to check for red it breaks and doesnt work

:class="{orange : campaignStatus.value ==='ARCHIVED' || campaignStatus.value ==='PAUSED'} || {red : campaignStatus.value ==='BANNED' || campaignStatus.value ==='REMOVED'}"

however this work

:class="{orange : campaignStatus.value ==='ARCHIVED' || campaignStatus.value ==='PAUSED'} 

how can i add the or part for the red class?

1 Answer 1

1
:class="{orange : campaignStatus.value ==='ARCHIVED' || campaignStatus.value ==='PAUSED', red : campaignStatus.value ==='BANNED' || campaignStatus.value ==='REMOVED'}"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.