feat(more_options): delete recipe, diet, plans, move to draft diets and plans

This commit is contained in:
mso7nueh
2025-05-07 12:48:52 +03:00
parent 037fc3d529
commit b2d9e808fe
14 changed files with 163 additions and 174 deletions

View File

@@ -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;
}
}
}