radar2go / radar-beta

This is a public repo meant to collect issue reports on radar2go
1 stars 0 forks source link

Show/hide offers based on availability #52

Closed mturjak closed 8 years ago

mturjak commented 8 years ago

Something went wrong with showing available offers ... if number limited shows OK (when post.available > 0), but need to add offers with set post.number < 1 (unlimited) to the condition

mturjak commented 8 years ago

Ok ... now the ng-ifcontains:

(post.available && post.available !== 0 || post.number < 1)
mturjak commented 8 years ago

Actual condition needs to be like this:

((post.available && post.available !== 0) || (post.type === 'offer' && post.number < 1) || post.type === 'moment')