Commit 2d1c2f43 authored by Koen van der Veen's avatar Koen van der Veen
Browse files

format

parent d66d162e
Showing with 10 additions and 6 deletions
+10 -6
......@@ -151,11 +151,12 @@ class DataAppProvider with ChangeNotifier {
setDataAppState(AppState state) async {
// first show the logs are loading
currentAppState = state;
/// TODO: FIX THIS, CAUSE EXCEPTION
notifyListeners();
// then, show log contents
if (state ==AppState.showLogs){
if (state == AppState.showLogs) {
currentRunLog = await getRunLog(currentPluginRun!);
}
notifyListeners();
......@@ -269,10 +270,9 @@ class DataAppProvider with ChangeNotifier {
AppLogger.debug('Run done');
AppLogger.debug('app message: ${currentPluginItems.length}');
AppLogger.debug('has log: ${currentRunLog != null}');
}
else if (getCurrentRunStatus() == 'started'){
} else if (getCurrentRunStatus() == 'started') {
if (changeState) {
currentAppState=AppState.initialPredictions;
currentAppState = AppState.initialPredictions;
notifyListeners();
}
}
......@@ -885,6 +885,7 @@ class DataAppProvider with ChangeNotifier {
}
Future<void> setLatestPluginRunAsCurrent(String containerImage) async {
currentPluginRun = await _graphService.getPluginRunsWithContainerImage(containerImage);
currentPluginRun =
await _graphService.getPluginRunsWithContainerImage(containerImage);
}
}
......@@ -134,7 +134,10 @@ class _ProjectsAppPreviewScreen extends State<ProjectsAppPreviewScreen> {
? TextButton(
style: tertiaryButtonStyle,
onPressed: () =>
dataAppProvider.runIndexerPluginFromGit(project:projectProvider.currentProject!, changeState: false),
dataAppProvider.runIndexerPluginFromGit(
project:
projectProvider.currentProject!,
changeState: false),
child: Text(
'Run app',
style: AppStyles.buttonLabel,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment