File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
lib/content_management/view Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import 'package:ht_dashboard/content_management/bloc/content_management_bloc.dar
5
5
import 'package:ht_dashboard/content_management/bloc/create_source/create_source_bloc.dart' ;
6
6
import 'package:ht_dashboard/content_management/bloc/edit_source/edit_source_bloc.dart' ;
7
7
import 'package:ht_dashboard/l10n/l10n.dart' ;
8
+ import 'package:ht_dashboard/shared/constants/pagination_constants.dart' ;
8
9
import 'package:ht_dashboard/shared/shared.dart' ;
9
10
import 'package:ht_data_repository/ht_data_repository.dart' ;
10
11
import 'package:ht_shared/ht_shared.dart' ;
@@ -83,7 +84,8 @@ class _CreateSourceViewState extends State<_CreateSourceView> {
83
84
SnackBar (content: Text (l10n.sourceCreatedSuccessfully)),
84
85
);
85
86
context.read <ContentManagementBloc >().add (
86
- SourceAdded (state.createdSource! ),
87
+ // Refresh the list to show the new source
88
+ const LoadSourcesRequested (limit: kDefaultRowsPerPage),
87
89
);
88
90
context.pop ();
89
91
}
You can’t perform that action at this time.
0 commit comments