Skip to content

Commit

Permalink
fix: minor form resetting and sortable key fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asuworks committed Jun 12, 2024
1 parent 22789b1 commit 1f79d75
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
:disable-edit-form="disableEditForm"
:is-edit="false"
ref="editFormRef"
@reset="resetForm"
@success="() => editContributorModal?.hide()"
/>
</template>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/releaseEditor/ContributorEditForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
</form>
</div>
<div class="modal-footer border-0">
<button v-if="!isEdit" type="button" class="btn btn-outline-gray" @click="resetContributor">
<button v-if="!isEdit" type="button" class="btn btn-outline-gray" @click="emit('reset')">
Reset
</button>
<button
Expand Down Expand Up @@ -166,7 +166,7 @@ const props = withDefaults(
}
);
const emit = defineEmits(["success"]);
const emit = defineEmits(["success", "reset"]);
const { serverErrors: profileErrors, search } = useProfileAPI();
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/releaseEditor/ContributorsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</div>
<Sortable
:list="releaseContributors"
:item-key="item => item.contributor.email"
:item-key="item => item.contributor.id"
class="list-group my-3"
@end="sort"
tag="ul"
Expand Down

0 comments on commit 1f79d75

Please sign in to comment.