Skip to content

Commit

Permalink
fix #41
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonCat4012 committed Jul 17, 2023
1 parent 35478f9 commit b432c3b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Calq/Screens/EditGradeScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import SwiftUI

struct EditGradeScreen: View {
@Environment(\.presentationMode) var presentationMode
@EnvironmentObject var toastControl: ToastControl

@State var test: UserTest
var color: Color = .accentColor

Expand Down Expand Up @@ -100,6 +102,7 @@ struct EditGradeScreen: View {
func deleteGrade() {
dismissSheet()
Util.deleteTest(test)
toastControl.show("gradeEditDelete", .success)
}

func saveGrade() {
Expand Down
1 change: 1 addition & 0 deletions Calq/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"gradeEdit"="Note bearbeiten";
"gradeDelete"="Note löschen";
"gradeSave"="Änderungen speichern";
"gradeEditDelete"="Note gelöscht";

"subjectDetailGradeList"="Notenliste ansehen";
"subjectDetailAverageHalfyear"="Durchschnitt des Halbjahres";
Expand Down
1 change: 1 addition & 0 deletions Calq/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"gradeEdit"="Edit Grade";
"gradeDelete"="Delete Grade";
"gradeSave"="Save changes";
"gradeEditDelete"="Grade deleted";

"subjectDetailGradeList"="View Grades";
"subjectDetailAverageHalfyear"="Halfyear Average";
Expand Down

0 comments on commit b432c3b

Please sign in to comment.