Added a loading screen on Notificatoins if isLoading
• Added: - a loading screen on Notificatoins if isLoading
This commit is contained in:
parent
f98abbb422
commit
a6e9bd3fb4
@ -12,6 +12,7 @@ import {
|
|||||||
forceDequeueNotifications,
|
forceDequeueNotifications,
|
||||||
} from '../actions/notifications'
|
} from '../actions/notifications'
|
||||||
import NotificationContainer from '../containers/notification_container'
|
import NotificationContainer from '../containers/notification_container'
|
||||||
|
import ColumnIndicator from '../components/column_indicator'
|
||||||
import ScrollableList from '../components/scrollable_list'
|
import ScrollableList from '../components/scrollable_list'
|
||||||
import TimelineQueueButtonHeader from '../components/timeline_queue_button_header'
|
import TimelineQueueButtonHeader from '../components/timeline_queue_button_header'
|
||||||
import Block from '../components/block'
|
import Block from '../components/block'
|
||||||
@ -107,6 +108,10 @@ class Notifications extends ImmutablePureComponent {
|
|||||||
selectedFilter,
|
selectedFilter,
|
||||||
} = this.props
|
} = this.props
|
||||||
|
|
||||||
|
if (isLoading) {
|
||||||
|
return <ColumnIndicator type='loading' />
|
||||||
|
}
|
||||||
|
|
||||||
let scrollableContent = null
|
let scrollableContent = null
|
||||||
|
|
||||||
if (isLoading && this.scrollableContent) {
|
if (isLoading && this.scrollableContent) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user