now with edit vs create icon
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
:no-filter="isTagFilter"
|
:no-filter="isTagFilter"
|
||||||
:append-icon="errorIcon"
|
:append-icon="errorIcon"
|
||||||
@click:append="handleErrorClick"
|
@click:append="handleErrorClick"
|
||||||
:prepend-icon="allowEdit ? 'fa-edit' : null"
|
:prepend-icon="editIcon()"
|
||||||
@click:prepend="handleEditClick"
|
@click:prepend="handleEditClick"
|
||||||
@mousedown="dropdown"
|
@mousedown="dropdown"
|
||||||
>
|
>
|
||||||
@@ -181,6 +181,15 @@ export default {
|
|||||||
data: "ay-start-form-picklist"
|
data: "ay-start-form-picklist"
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
editIcon: function() {
|
||||||
|
if (!this.allowEdit) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (this.value != 0) {
|
||||||
|
return "fa-edit";
|
||||||
|
}
|
||||||
|
return "fa-plus";
|
||||||
|
},
|
||||||
handleEditClick: function() {
|
handleEditClick: function() {
|
||||||
var idToOpen = 0;
|
var idToOpen = 0;
|
||||||
if (this.lastSelection != null && this.lastSelection.id) {
|
if (this.lastSelection != null && this.lastSelection.id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user