File tree Expand file tree Collapse file tree
WordPress/src/main/java/org/wordpress/android/ui/mysite/personalization Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ class PersonalizationViewModel @Inject constructor(
2323 val uiState = dashboardCardPersonalizationViewModelSlice.uiState
2424 val shortcutsState = shortcutsPersonalizationViewModelSlice.uiState
2525
26+ private val _onSelectedSiteMissing = MutableLiveData <Unit >()
27+ val onSelectedSiteMissing = _onSelectedSiteMissing as LiveData <Unit >
28+
2629 init {
2730 shortcutsPersonalizationViewModelSlice.initialize(viewModelScope)
2831 dashboardCardPersonalizationViewModelSlice.initialize(viewModelScope)
@@ -31,7 +34,7 @@ class PersonalizationViewModel @Inject constructor(
3134 fun start () {
3235 val site = selectedSiteRepository.getSelectedSite()
3336 if (site == null ) {
34- // todo pass a state to the ui
37+ _onSelectedSiteMissing .value = Unit
3538 return
3639 }
3740
You can’t perform that action at this time.
0 commit comments