Skip to content

Commit

Permalink
hide "_sprechend" fields
Browse files Browse the repository at this point in the history
  • Loading branch information
alessioC42 committed Sep 14, 2023
1 parent 739c4ef commit e046e4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function createCardItem(data) {

let keys = Object.keys(data);
keys.forEach(key => {
if (data[key] && !(["Tag_en", "_hervorgehoben", "Tag", "Stunde", "Fach", "Art", "Klasse"].includes(key))) {
if (data[key] && !(["Tag_en", "_hervorgehoben", "Tag", "Stunde", "Fach", "Art", "Klasse", "_sprechend"].includes(key))) {
addRow(`${key.replace("_", " ")}:`, data[key])
}
});
Expand Down Expand Up @@ -213,7 +213,7 @@ async function updatePlanView() {
cardContainer.appendChild(createCardItem(entry)); //render Card
}


});
app.dialog.close();
}).catch(_error => {
Expand Down Expand Up @@ -325,9 +325,9 @@ async function init() {
} else {
let autologin = await SecureStorage.getItem("autologin");
let serverURL = await SecureStorage.getItem("serverURL");
let password = await SecureStorage.getItem("password");
let username = await SecureStorage.getItem("username");
let schoolid = await SecureStorage.getItem("schoolid");
let password = await SecureStorage.getItem("password");
let username = await SecureStorage.getItem("username");
let schoolid = await SecureStorage.getItem("schoolid");

if (autologin && serverURL && username && password && schoolid) {
auth(serverURL, username, password, schoolid).then(() => {
Expand Down

0 comments on commit e046e4b

Please sign in to comment.