Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MobileEventLog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Data-Logistics-Support
MobileEventLog
Commits
8680a6ce
Commit
8680a6ce
authored
2 years ago
by
Maximilian Betz
Browse files
Options
Downloads
Patches
Plain Diff
first version with editing events done
parent
c1f11e3e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/editevent.dart
+1
-1
1 addition, 1 deletion
lib/editevent.dart
lib/viewevents.dart
+12
-16
12 additions, 16 deletions
lib/viewevents.dart
with
13 additions
and
17 deletions
lib/editevent.dart
+
1
−
1
View file @
8680a6ce
...
...
@@ -458,7 +458,7 @@ class _EditEventPageState extends State<EditEvent> {
if
(
_validateInput
(
editEvent
))
{
_updateOpenEvent
(
context
);
_showResultPopup
(
context
,
"
Successfully u
pdated Event !"
,
false
);
_showResultPopup
(
context
,
"
U
pdated Event !"
,
false
);
Navigator
.
pop
(
context
);
}
},
...
...
This diff is collapsed.
Click to expand it.
lib/viewevents.dart
+
12
−
16
View file @
8680a6ce
...
...
@@ -81,11 +81,11 @@ class _ViewEvents extends State<ViewEvents> {
var
index
=
0
;
for
(
var
event
in
events
)
{
if
(
_cancelSync
==
true
){
_currentlySyncing
=
false
;
_syncButtonText
=
'Start Sync'
;
debugPrint
(
'Sync process canceled'
);
return
;
}
_currentlySyncing
=
false
;
_syncButtonText
=
'Start Sync'
;
debugPrint
(
'Sync process canceled'
);
return
;
}
_currentlySyncing
=
true
;
_syncButtonText
=
'Syncing ...'
;
if
(
mounted
)
{
...
...
@@ -234,18 +234,14 @@ class _ViewEvents extends State<ViewEvents> {
}
debugPrint
(
"Selected Row: "
+
i
.
toString
());
//TODO: open widget to edit the rows event values.
//TODO: Similar to Widget Add Event, GNSS editing always enabled, No GNSS switch, No Now Button?
//TODO: Show start and end time separately.
//TODO: Do not show GNSS on/off switch
//TODO: Provide "cancel" and "update" functionality at the bottom bar.
//TODO: display "Exported Events are read only, Edit via Sensor.awi.de" when trying to edit.
debugPrint
(
_localEvents
[
i
]
.
toString
());
//Open Edit widget. Reload updated events from database and setState when returning.
var
eventCopy
=
Event
.
fromEvent
(
_localEvents
[
i
]);
Navigator
.
pushNamed
(
context
,
'/fifth'
,
arguments:
{
'event'
:
eventCopy
}
)
.
then
((
_
)
=
>
setState
(()
{
fetchEventsFromDb
();}));
if
(
eventCopy
.
status
==
'PENDING'
){
Navigator
.
pushNamed
(
context
,
'/fifth'
,
arguments:
{
'event'
:
eventCopy
}
)
.
then
((
_
)
=
>
setState
(()
{
fetchEventsFromDb
();}));
}
else
{
debugPrint
(
'Can not edit already exported events.'
);
//TODO: display popup or grey out"Exported Events are read only, Edit via Sensor.awi.de" when trying to edit.
}
},
cells:
<
DataCell
>[
//DataCell(Text(_localEvents[i].urnId.toString())),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment