Skip to content

Commit 6ced65c

Browse files
[6.x] Fix bulk actions not showing (#1700)
* Fix phRenderActions * build assets
1 parent db1fe3f commit 6ced65c

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

dist/mix-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"/powergrid.js": "/powergrid.js?id=370e1616c92a03ffc8b55433d3b75b54",
2+
"/powergrid.js": "/powergrid.js?id=294e0648790446137adc832e2e9a972b",
33
"/bootstrap5.css": "/bootstrap5.css?id=a27af22343149104b2aa3283d8fd502b",
44
"/tailwind.css": "/tailwind.css?id=924477e2afcb2cb56aa392e266ee56ca"
55
}

dist/powergrid.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/components/pg-render-actions.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,16 @@ export default (params) => ({
3232
}
3333

3434
let actions = null;
35+
const wireId = this.parentId ?? this.$wire.id;
3536

3637
if (this.rowId) {
37-
const wireId = this.parentId ?? this.$wire.id;
3838
const pgActions = window[`pgActions_${wireId}`];
3939

4040
if (pgActions && pgActions[this.rowId] !== undefined) {
4141
actions = pgActions[this.rowId];
4242
}
43-
44-
const pgActionsHeader = window[`pgActionsHeader_${this.$wire.id}`];
45-
if (!actions && pgActionsHeader !== undefined) {
46-
actions = pgActionsHeader;
47-
}
43+
} else {
44+
actions = window[`pgActionsHeader_${wireId}`];
4845
}
4946

5047
if (typeof actions !== "object" || actions === null) {

resources/js/stores/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ document.addEventListener('alpine:init', () => {
5757
}
5858
},
5959
get(tableName) {
60-
return this.selected[tableName]
60+
return this.selected[tableName] ?? ''
6161
},
6262
count(tableName) {
6363
if(typeof this.selected[tableName] == 'undefined') {

0 commit comments

Comments
 (0)