Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

feat(Stats): add more info to slot #451

Merged
merged 4 commits into from
May 29, 2018
Merged

feat(Stats): add more info to slot #451

merged 4 commits into from
May 29, 2018

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented May 18, 2018

see #449 and #450 for detailed info

hecktarzuli and others added 4 commits May 18, 2018 09:47
* Add resultStart, resultEnd

Adding resultStart and resultEnd gives you "Amazon Like" stats.  For example "Showing {{ resultStart }} - {{ resultEnd }} of {{ totalResults }}" would show "Showing 31 - 60 of 123" when you are on page 2 with 30 / page.

* forgot rename

* updated slot example

* Reverted slot example, left slot vars

* undefined checks

If this is really what you wanted, I wonder why the original 3 computed properties didn't have these checks.

* trying to make pretty happy..
@Haroenv
Copy link
Contributor Author

Haroenv commented May 29, 2018

Basically this PR is fine to merge, in a later version we can replace Stats completely with a component giving access to rendering arbitrary content from the raw results so it's able to handle a lot more use cases.

@Haroenv Haroenv requested review from a team and rayrutjes May 29, 2018 14:45
Copy link
Member

@rayrutjes rayrutjes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Haroenv Haroenv merged commit f2b3ab2 into master May 29, 2018
@Haroenv Haroenv deleted the feat/improve-stats branch May 29, 2018 14:56
Haroenv added a commit that referenced this pull request May 29, 2018
* feat(Stats): add more info to slot (#449)

* Add resultStart, resultEnd

Adding resultStart and resultEnd gives you "Amazon Like" stats.  For example "Showing {{ resultStart }} - {{ resultEnd }} of {{ totalResults }}" would show "Showing 31 - 60 of 123" when you are on page 2 with 30 / page.

* forgot rename

* updated slot example

* Reverted slot example, left slot vars

* undefined checks

If this is really what you wanted, I wonder why the original 3 computed properties didn't have these checks.

* trying to make pretty happy..

* Tweaks for resultStart/End (#450)

per #449

* test(Stats): text with correct search store
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants