diff --git a/application/controllers/api/frontend/v1/stv/Config.php b/application/controllers/api/frontend/v1/stv/Config.php index ac907057b..ba752d7be 100644 --- a/application/controllers/api/frontend/v1/stv/Config.php +++ b/application/controllers/api/frontend/v1/stv/Config.php @@ -269,7 +269,7 @@ class Config extends FHCAPI_Controller "&lvid={lehrveranstaltung_id}"; $archive_url = "api/frontend/v1/documents/archiveSigned"; - $archive_response = $this->p->t("stv", "document_signed_and_archived"); + $archive_response = $this->p->t("stv", "document_signed_and_archived"); // TODO(chris): phrase $archive_post_ff = [ "xml" => "zertifikat.rdf.php", "xsl" => "Zertifikat", diff --git a/public/js/components/Stv/Studentenverwaltung/Details/Noten/Zeugnis.js b/public/js/components/Stv/Studentenverwaltung/Details/Noten/Zeugnis.js index bd912c25a..6ff286199 100644 --- a/public/js/components/Stv/Studentenverwaltung/Details/Noten/Zeugnis.js +++ b/public/js/components/Stv/Studentenverwaltung/Details/Noten/Zeugnis.js @@ -175,7 +175,7 @@ export default { deleteButton.append(icon); deleteButton.addEventListener('click', evt => { evt.stopPropagation(); - this.deleteGrade(data);// TODO(chris): test with new data object + this.deleteGrade(data); }); container.append(deleteButton); } @@ -225,6 +225,7 @@ export default { .catch(this.$fhcAlert.handleFormValidation); }, deleteGrade(data) { + // NOTE(chris): There is no check if there is an entry to be deleted, but it works anyway return this.$fhcAlert .confirmDelete() .then(result => result ? data : Promise.reject({handled:true})) @@ -234,10 +235,9 @@ export default { .catch(this.$fhcAlert.handleSystemError); } }, - // TODO(chris): phrasen + // TODO(chris): phrasen (title) template: `
-