@@ -21,6 +21,7 @@ import com.anytypeio.anytype.core_utils.ext.shareFile
21
21
import com.anytypeio.anytype.core_utils.ext.toast
22
22
import com.anytypeio.anytype.core_utils.ui.BaseComposeFragment
23
23
import com.anytypeio.anytype.di.common.componentManager
24
+ import com.anytypeio.anytype.presentation.search.Subscriptions
24
25
import com.anytypeio.anytype.presentation.spaces.SpaceSettingsViewModel
25
26
import com.anytypeio.anytype.presentation.spaces.SpaceSettingsViewModel.Command
26
27
import com.anytypeio.anytype.presentation.util.downloader.UriFileProvider
@@ -31,6 +32,7 @@ import com.anytypeio.anytype.ui.objects.types.pickers.ObjectTypeSelectionListene
31
32
import com.anytypeio.anytype.ui.settings.SpacesStorageFragment
32
33
import com.anytypeio.anytype.ui.settings.typography
33
34
import com.anytypeio.anytype.ui.spaces.DeleteSpaceWarning
35
+ import com.anytypeio.anytype.ui.widgets.collection.CollectionFragment
34
36
import com.anytypeio.anytype.ui_settings.space.new_settings.SpaceSettingsContainer
35
37
import java.io.File
36
38
import javax.inject.Inject
@@ -174,6 +176,19 @@ class SpaceSettingsFragment : BaseComposeFragment(), ObjectTypeSelectionListener
174
176
Timber .e(it, " Failed to execute nav command: $command " )
175
177
}
176
178
}
179
+ is Command .ManageBin -> {
180
+ runCatching {
181
+ findNavController().navigate(
182
+ R .id.homeScreenWidgets,
183
+ CollectionFragment .args(
184
+ subscription = Subscriptions .SUBSCRIPTION_ARCHIVED ,
185
+ space = space
186
+ )
187
+ )
188
+ }.onFailure {
189
+ Timber .w(it, " Error while opening bin from widgets" )
190
+ }
191
+ }
177
192
}
178
193
}
179
194
}
0 commit comments