public static DeleteGroupState FetchDeleteGroup(DeleteGroupState state) { return(state with { IsLoadingDeleteGroup = true, DeleteGroupErrorMessage = null }); }
public static DeleteGroupState ReceivedDeleteGroup(DeleteGroupState state) { return(state with { IsLoadingDeleteGroup = false, ShowDeleteGroupForm = false }); }
public static DeleteGroupState ErrorFetchingDeleteGroup(DeleteGroupState state, ErrorFetchingDeleteGroupAction action) { return(state with { IsLoadingDeleteGroup = false, DeleteGroupErrorMessage = action.ErrorMessage }); }
public static DeleteGroupState ShowDeleteGroupForm(DeleteGroupState state, ShowDeleteGroupFormAction action) { return(state with { ShowDeleteGroupForm = true, BookmarkGroupIdToDelete = action.GroupIdToDelete, BookmarkGroupTitleToDelete = action.GroupTitleToDelete, IsLoadingDeleteGroup = false, DeleteGroupErrorMessage = null }); }
public static DeleteGroupState HideDeleteGroupForm(DeleteGroupState state) { return(state with { ShowDeleteGroupForm = false }); }