This commit is contained in:
@ -153,6 +153,8 @@ function updateNutritionData() {
|
|||||||
let currentAction = '';
|
let currentAction = '';
|
||||||
|
|
||||||
function showPasswordPrompt(action) {
|
function showPasswordPrompt(action) {
|
||||||
|
console.log("hier")
|
||||||
|
console.log(action)
|
||||||
currentAction = action; // 'delete' oder 'edit'
|
currentAction = action; // 'delete' oder 'edit'
|
||||||
document.getElementById('password-prompt').style.display = 'block';
|
document.getElementById('password-prompt').style.display = 'block';
|
||||||
document.getElementById('delete-row-button').style.display = action === 'edit' ? 'none' : 'block';
|
document.getElementById('delete-row-button').style.display = action === 'edit' ? 'none' : 'block';
|
||||||
|
Reference in New Issue
Block a user