~vthompson/ubuntu-weather-app/fix-1452501-location-not-found

« back to all changes in this revision

Viewing changes to app/ui/LocationsPage.qml

* Rename EmptyStateComponent to HomePageEmptyStateComponent
* Add a LocationsPageEmptyStateComponent.

Approved by Victor Thompson, Ubuntu Phone Apps Jenkins Bot, Andrew Hayzen.

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
        }
251
251
    }
252
252
 
 
253
    Loader {
 
254
        active: locationsList === null || locationsList.length === 0
 
255
        anchors {
 
256
            fill: parent
 
257
        }
 
258
        asynchronous: true
 
259
        source: "../components/LocationsPageEmptyStateComponent.qml"
 
260
        visible: status === Loader.Ready && active
 
261
    }
 
262
 
253
263
    function populateLocationsModel() {
254
264
        currentLocationModel.clear()
255
265
        locationsModel.clear()