update reordering
This commit is contained in:
@ -235,6 +235,13 @@ class DestinationController extends GetxController {
|
||||
});
|
||||
}
|
||||
|
||||
void deleteAllDestinations(){
|
||||
DatabaseHelper db = DatabaseHelper.instance;
|
||||
db.deleteAllDestinations().then((value){
|
||||
PopulateDestinations();
|
||||
});
|
||||
}
|
||||
|
||||
// ---------- database ------------------///
|
||||
|
||||
void addDestinations(Destination dest){
|
||||
@ -294,8 +301,11 @@ class DestinationController extends GetxController {
|
||||
}
|
||||
|
||||
|
||||
void makeOrder(String locationId){
|
||||
|
||||
void makeOrder(Destination d, int dir){
|
||||
DatabaseHelper db = DatabaseHelper.instance;
|
||||
db.updateOrder(d, dir).then((value){
|
||||
PopulateDestinations();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user