Exemple #1
0
 public static DeleteContainerState FetchDeleteContainerForm(DeleteContainerState state)
 {
     return(state with {
         IsLoadingDeleteContainer = true,
         DeleteContainerErrorMessage = null
     });
 }
Exemple #2
0
 public static DeleteContainerState HideDeleteContainerForm(DeleteContainerState state)
 {
     return(state with {
         ShowDeleteContainerForm = false,
         DeleteContainerErrorMessage = null
     });
 }
Exemple #3
0
 public static DeleteContainerState ErrorFetchingDeleteContainer(DeleteContainerState state,
                                                                 ErrorFetchingDeleteContainerAction action)
 {
     return(state with {
         DeleteContainerErrorMessage = action.ErrorMessage,
         IsLoadingDeleteContainer = false
     });
 }
Exemple #4
0
 public static DeleteContainerState ReceivedDeleteContainer(DeleteContainerState state)
 {
     return(state with {
         IsLoadingDeleteContainer = false,
         DeleteContainerErrorMessage = null,
         ShowDeleteContainerForm = false
     });
 }
Exemple #5
0
 public static DeleteContainerState ShowDeleteContainerForm(DeleteContainerState state,
                                                            ShowDeleteContainerFormAction action)
 {
     return(state with {
         ShowDeleteContainerForm = true,
         BookmarkContainerIdToDelete = action.ContainerIdToDelete,
         BookmarkContainerTitleToDelete = action.ContainerTitleToDelete,
         DeleteContainerErrorMessage = null
     });
 }