This is an automated email from the ASF dual-hosted git repository. machristie pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
commit 46e8038b8b50d5c75f83d91cca60463d118a1362 Author: Marcus Christie <[email protected]> AuthorDate: Fri Oct 21 17:38:07 2022 -0400 AIRAVATA-3661 disable first move up, last move down in choices --- .../users/field-editors/ExtendedUserProfileFieldEditor.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/django_airavata/apps/admin/static/django_airavata_admin/src/components/users/field-editors/ExtendedUserProfileFieldEditor.vue b/django_airavata/apps/admin/static/django_airavata_admin/src/components/users/field-editors/ExtendedUserProfileFieldEditor.vue index 7f1371b1..95dd6dc3 100644 --- a/django_airavata/apps/admin/static/django_airavata_admin/src/components/users/field-editors/ExtendedUserProfileFieldEditor.vue +++ b/django_airavata/apps/admin/static/django_airavata_admin/src/components/users/field-editors/ExtendedUserProfileFieldEditor.vue @@ -34,7 +34,7 @@ <b-input-group-append> <b-button @click="handleChoiceMoveUp(choice)" - :disabled="index === 0" + :disabled="index === String(0)" v-b-tooltip.hover.left title="Move Up" > @@ -43,7 +43,8 @@ <b-button @click="handleChoiceMoveDown(choice)" :disabled=" - index === extendedUserProfileField.choices.length - 1 + index === + String(extendedUserProfileField.choices.length - 1) " v-b-tooltip.hover.left title="Move Down"
