forked from eatvio/eatvio_app
feat(more_options): delete recipe, diet, plans, move to draft diets and plans
This commit is contained in:
@@ -204,4 +204,13 @@ class MyPlansCubit extends Cubit<MyPlansState> {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Future<bool> unpublish(String slug) async {
|
||||
try {
|
||||
await myPlansRepository.unpublish(slug);
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user