Skip to content

Commit a3cbef3

Browse files
authored
Update table_check_controller.js
1 parent 5f00578 commit a3cbef3

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

assets/controllers/table_check_controller.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Controller } from "@hotwired/stimulus";
55
* assets/controllers/table_check_controller.js
66
*/
77
export default class extends Controller {
8-
static targets = ["rowInputs", "itemDownload", "itemDirDownload", "itemDelete", "itemDirDelete"];
8+
static targets = ["rowInputs", "itemDownload", "itemDirDownload", "itemMove", "itemDirMove", "itemRename", "itemDirRename", "itemDelete", "itemDirDelete"];
99
static values = {
1010
check: Array,
1111
checkDir: Array
@@ -59,6 +59,12 @@ export default class extends Controller {
5959
if (this.hasItemDownloadTarget) {
6060
this.itemDownloadTarget.value = JSON.stringify(this.checkValue);
6161
}
62+
if (this.hasItemMoveTarget) {
63+
this.itemMoveTarget.value = JSON.stringify(this.checkValue);
64+
}
65+
if (this.hasItemRenameTarget) {
66+
this.itemRenameTarget.value = JSON.stringify(this.checkValue);
67+
}
6268
}
6369

6470
checkDir(event) {
@@ -81,5 +87,11 @@ export default class extends Controller {
8187
if (this.hasItemDirDownloadTarget) {
8288
this.itemDirDownloadTarget.value = JSON.stringify(this.checkDirValue);
8389
}
90+
if (this.hasItemDirMoveTarget) {
91+
this.itemDirMoveTarget.value = JSON.stringify(this.checkDirValue);
92+
}
93+
if (this.hasItemDirRenameTarget) {
94+
this.itemDirRenameTarget.value = JSON.stringify(this.checkDirValue);
95+
}
8496
}
8597
}

0 commit comments

Comments
 (0)