• Eshaani.Ishaa
  • NEWBIE
  • 0 Points
  • Member since 2016


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
In Force.com site in Lightning App, even after clearing the cookie before and after login and passing user credentials, we are able to see already logged in user details. Please suggest how to maintain the current user session.
Hi, I am iterationg some records and i want to put images based on condition , I am comparing values in <aura:if>  but its not working.
Below is the code :

 <aura:iteration items="{!v.applicationList}" var="obj">
   <aura:if isTrue="{!obj.Status__c=='Approved'}">
       <i class=""><img src="/resource/1473844082000/app_approve"/></i>
  </aura:if>
   <aura:if isTrue="{!obj.Status__c=='In progress'}">
      <i class=""><img src="/resource/1473663683000/app_yell"/></i>  
   </aura:if>
   <aura:if isTrue="{!obj.Status__c=='Declined'}">            
      <i class=""><img src="/resource/1473844158000/app_pending"/></i>  
   </aura:if>          

</aura:iteration>


I tried with this code, but this is also not working,

<aura:if isTrue="{!obj.Status__c=='Approved'}">
<i class=""><img src="/resource/1473844082000/app_approve"/></i>
<aura:set attribute="else" >
  <aura:if isTrue="{!obj.Status__c=='In progress'}">
<i class=""><img src="/resource/1473663683000/app_yell"/></i>  
 <aura:set attribute="else" >
      <aura:if isTrue="{!obj.Status__c=='Declined'}">            

          <i class=""><img src="/resource/1473844158000/app_pending"/></i>    
<aura:set attribute="else">
          
          none
          </aura:set>
     </aura:if>
      </aura:set>
</aura:if>
</aura:set>
</aura:if>