Item Movement User
This commit is contained in:
parent
9ed5e6b6a5
commit
1e49f979aa
@ -530,7 +530,7 @@
|
|||||||
alert('Success!', 'Item form has been successfully submitted.', 'success');
|
alert('Success!', 'Item form has been successfully submitted.', 'success');
|
||||||
const updatedItem = await response.json();
|
const updatedItem = await response.json();
|
||||||
this.items.push(updatedItem);
|
this.items.push(updatedItem);
|
||||||
|
this.fetchUser();
|
||||||
this.fetchItem();
|
this.fetchItem();
|
||||||
|
|
||||||
// Reset the form
|
// Reset the form
|
||||||
|
|||||||
@ -841,8 +841,16 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
toggleHistory(itemId) {
|
toggleHistory(itemId) {
|
||||||
|
// Jika item yang ditekan sudah terbuka, tutup
|
||||||
|
if (this.historyVisible[itemId]) {
|
||||||
|
this.historyVisible[itemId] = false;
|
||||||
|
} else {
|
||||||
|
// Tutup semua history lain dahulu
|
||||||
this.historyVisible = {};
|
this.historyVisible = {};
|
||||||
this.historyVisible[itemId] = !this.historyVisible[itemId];
|
|
||||||
|
// Buka hanya item yang ditekan
|
||||||
|
this.historyVisible[itemId] = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
toggleDetails(movementId) {
|
toggleDetails(movementId) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user