Skip to content

Commit

Permalink
VersionTransicion
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoma committed Jun 3, 2024
1 parent 29aba63 commit 04caa3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/components/FormGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{{ group.title }}
</p>

<div class="flex" v-if="!readonly && !hideGroupButtons">
<div class="flex" v-if="!readonly && false /*!hideGroupButtons*/ ">
<button
dusk="drag-group"
type="button"
Expand Down
2 changes: 1 addition & 1 deletion resources/js/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class Group {
this.key = key || this.getTemporaryUniqueKey(field.attribute);
this.collapsed = collapsed;
// if readOnlyPrevious is true and if firstLoad is true, all previus fields map to readonly.
this.fields = field.readOnlyPrevious? (firstLoad ? fields.map(attributes => ({ ...attributes, readonly: true })) : fields):fields;
this.fields = /*field.readOnlyPrevious? (*/firstLoad ? fields.map(attributes => ({ ...attributes, readonly: true })) : fields/*):fields*/;
this.readonly = field.readonly;

this.renameFields();
Expand Down

0 comments on commit 04caa3b

Please sign in to comment.