maintain code readability
This commit is contained in:
commit
cc99419e49
@ -1153,11 +1153,16 @@
|
||||
this.historyVisible = {};
|
||||
},
|
||||
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[itemId] = !this.historyVisible[itemId];
|
||||
// this.historyVisible = {};
|
||||
|
||||
|
||||
// Buka hanya item yang ditekan
|
||||
this.historyVisible[itemId] = true;
|
||||
}
|
||||
},
|
||||
toggleDetails(movementId) {
|
||||
this.detailsVisible[movementId] = !this.detailsVisible[movementId];
|
||||
|
||||
@ -530,7 +530,7 @@
|
||||
alert('Success!', 'Item form has been successfully submitted.', 'success');
|
||||
const updatedItem = await response.json();
|
||||
this.items.push(updatedItem);
|
||||
|
||||
this.fetchUser();
|
||||
this.fetchItem();
|
||||
|
||||
// Reset the form
|
||||
|
||||
@ -841,8 +841,16 @@
|
||||
},
|
||||
|
||||
toggleHistory(itemId) {
|
||||
this.historyVisible = {};
|
||||
this.historyVisible[itemId] = !this.historyVisible[itemId];
|
||||
// Jika item yang ditekan sudah terbuka, tutup
|
||||
if (this.historyVisible[itemId]) {
|
||||
this.historyVisible[itemId] = false;
|
||||
} else {
|
||||
// Tutup semua history lain dahulu
|
||||
this.historyVisible = {};
|
||||
|
||||
// Buka hanya item yang ditekan
|
||||
this.historyVisible[itemId] = true;
|
||||
}
|
||||
},
|
||||
|
||||
toggleDetails(movementId) {
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
//"DefaultConnection": "Server=localhost;uid=root;Password='';Database=web_interface;"
|
||||
//"DefaultConnection": "server=175.136.244.102;user id=root;password=tw_mysql_root;port=3306;database=web_interface"
|
||||
//"CentralConnnection": "Server=192.168.12.12;Port=3306;uid=installer;password='pstw_mysql_installer';database=pstw_cs;", //DB_dev Local connection
|
||||
"CentralConnnection": "Server=219.92.7.60;Port=3307;uid=installer;password='pstw_mysql_installer';database=pstw_cs;" //DB_dev Public connection
|
||||
"CentralConnnection": "Server=219.92.7.60;Port=3307;uid=installer;password='pstw_mysql_installer';database=pstw_cs_prod;" //DB_dev Public connection
|
||||
//"InventoryConnection": "Server=219.92.7.60;Port=3307;uid=installer;password='pstw_mysql_installer';database=pstw_cs_inventory;" //DB_dev connection
|
||||
//"DefaultConnection": "Server=219.92.7.60;Port=3307;uid=intern;password='intern_mysql_acct';database=web_interface;"//DB_dev connection
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user