fix(spinner): fix default spinner logic for relevant components (#17660)

- In the **`loading`** component, fallback to `spinner` icon config before platform default.
- In both **`refresher`** & **`infinite-scroll`** components, use platform default as final fallback.
- In **`infinite-scroll`** test templates, and the _basic_ **`virtual-scroll`** test template, fix loading _spinner_ and _text_ attributes.

fixes #17659
This commit is contained in:
Abdelaziz Bennouna
2019-03-15 21:52:33 +00:00
committed by Brandy Carney
parent b5a393bd48
commit 9c48fa715d
8 changed files with 18 additions and 10 deletions

View File

@ -30,7 +30,7 @@ export class InfiniteScrollContent implements ComponentInterface {
if (this.loadingSpinner === undefined) {
this.loadingSpinner = this.config.get(
'infiniteLoadingSpinner',
this.config.get('spinner', 'lines')
this.config.get('spinner', this.mode === 'ios' ? 'lines' : 'crescent')
);
}
}