Skip to content

Commit

Permalink
[5.x] Prevent "Set Alt" button from running Replace Asset action prem…
Browse files Browse the repository at this point in the history
…aturely (#11269)
  • Loading branch information
duncanmcclean authored Dec 17, 2024
1 parent ae98dff commit b70a97b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/js/components/fieldtypes/assets/AssetRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<td class="w-24" v-if="showSetAlt">
<button
class="asset-set-alt text-blue dark:text-dark-blue-100 px-4 text-sm hover:text-black dark:hover:text-dark-100"
type="button"
@click="editOrOpen"
v-if="needsAlt"
>
Expand Down
1 change: 1 addition & 0 deletions resources/js/components/fieldtypes/assets/AssetTile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
</div>
<button
class="asset-meta-btn"
type="button"
@click="edit"
v-if="showSetAlt && needsAlt"
>
Expand Down

0 comments on commit b70a97b

Please sign in to comment.