diff --git a/ayanova/src/components/pick-list.vue b/ayanova/src/components/pick-list.vue index 94a0ddeb..34ad99c1 100644 --- a/ayanova/src/components/pick-list.vue +++ b/ayanova/src/components/pick-list.vue @@ -19,7 +19,7 @@ :no-filter="isTagFilter" :append-icon="errorIcon" @click:append="handleErrorClick" - :prepend-icon="allowEdit ? 'fa-edit' : null" + :prepend-icon="editIcon()" @click:prepend="handleEditClick" @mousedown="dropdown" > @@ -181,6 +181,15 @@ export default { data: "ay-start-form-picklist" }); }, + editIcon: function() { + if (!this.allowEdit) { + return null; + } + if (this.value != 0) { + return "fa-edit"; + } + return "fa-plus"; + }, handleEditClick: function() { var idToOpen = 0; if (this.lastSelection != null && this.lastSelection.id) {