Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
Flutter App for Memri
Commits
2d1c2f43
Commit
2d1c2f43
authored
2 years ago
by
Koen van der Veen
Browse files
Options
Download
Email Patches
Plain Diff
format
parent
d66d162e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/providers/data_app_provider.dart
+6
-5
lib/providers/data_app_provider.dart
lib/screens/workspace/projects/projects_app_preview_screen.dart
+4
-1
...reens/workspace/projects/projects_app_preview_screen.dart
with
10 additions
and
6 deletions
+10
-6
lib/providers/data_app_provider.dart
+
6
-
5
View file @
2d1c2f43
...
...
@@ -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
);
}
}
This diff is collapsed.
Click to expand it.
lib/screens/workspace/projects/projects_app_preview_screen.dart
+
4
-
1
View file @
2d1c2f43
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment