Skip to content

Commit

Permalink
chore: support version 4.33.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvroroy committed Mar 13, 2024
1 parent 8d524de commit 2aee775
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/views/Attach.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
v-else
class="w-full"
:class="{
'form-input-border-error': validationErrors.has(
'form-control-bordered-error': validationErrors.has(
field.attribute
),
}"
Expand Down
1 change: 1 addition & 0 deletions resources/js/views/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ export default {
}
Nova.$off('refresh-resources', this.getResources)
Nova.$off('resources-detached', this.getAuthorizationToRelate)
if (this.actionCanceller !== null) this.actionCanceller()
},
Expand Down
12 changes: 8 additions & 4 deletions resources/js/views/Lens.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
:singular-name="singularName"
:selected-resources="selectedResources"
:selected-resource-ids="selectedResourceIds"
:actions-are-available="allActions.length > 0"
:actions-are-available="actionsAreAvailable"
:actions-endpoint="lensActionEndpoint"
:should-show-checkboxes="shouldShowCheckboxes"
:via-resource="viaResource"
Expand Down Expand Up @@ -228,7 +228,7 @@ export default {
data: () => ({
actionCanceller: null,
hasId: false,
resourceHasId: false,
}),
/**
Expand Down Expand Up @@ -282,7 +282,7 @@ export default {
this.resources = data.resources
this.softDeletes = data.softDeletes
this.perPage = data.per_page
this.hasId = data.hasId
this.resourceHasId = data.hasId
this.handleResourcesLoaded()
})
Expand Down Expand Up @@ -402,6 +402,10 @@ export default {
}
},
actionsAreAvailable() {
return this.allActions.length > 0 && Boolean(this.resourceHasId)
},
/**
* Get the endpoint for this resource's actions.
*/
Expand All @@ -421,7 +425,7 @@ export default {
*/
canShowDeleteMenu() {
return (
this.hasId &&
Boolean(this.resourceHasId) &&
Boolean(
this.authorizedToDeleteSelectedResources ||
this.authorizedToForceDeleteSelectedResources ||
Expand Down
2 changes: 1 addition & 1 deletion resources/js/views/UpdateAttached.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
class="w-full"
dusk="attachable-select"
:class="{
'form-input-border-error': validationErrors.has(
'form-control-bordered-error': validationErrors.has(
field.attribute
),
}"
Expand Down

0 comments on commit 2aee775

Please sign in to comment.