forked from firka/student-legacy
added back premium check
This commit is contained in:
parent
604e9dcaad
commit
4277f0662a
@ -728,12 +728,12 @@ class GradesPageState extends State<GradesPage> {
|
||||
return;
|
||||
}
|
||||
|
||||
// if (!Provider.of<PlusProvider>(context, listen: false)
|
||||
// .hasScope(PremiumScopes.gradeExporting)) {
|
||||
// PlusLockedFeaturePopup.show(
|
||||
// context: context, feature: PremiumFeature.gradeExporting);
|
||||
// return;
|
||||
// }
|
||||
if (!Provider.of<PlusProvider>(context, listen: false)
|
||||
.hasScope(PremiumScopes.gradeExporting)) {
|
||||
PlusLockedFeaturePopup.show(
|
||||
context: context, feature: PremiumFeature.gradeExporting);
|
||||
return;
|
||||
}
|
||||
|
||||
// show file picker
|
||||
FilePicker.platform.pickFiles(
|
||||
@ -750,10 +750,6 @@ class GradesPageState extends State<GradesPage> {
|
||||
|
||||
generateTiles();
|
||||
setState(() {});
|
||||
|
||||
print(content);
|
||||
print(json);
|
||||
print(jsonGrades.map((e) => e.json));
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit ac93b31cbc8a3ce2a9e9e2036e2f2ae4ffbe51f3
|
||||
Subproject commit c01a0249b9266346d8e812fe026dc933500ceac7
|
Loading…
x
Reference in New Issue
Block a user