Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion components/CropSelector/CropSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
v-on:update:selected="handleUpdateSelected($event)"
v-on:valid="handleValid($event)"
v-on:add-clicked="handleAddClicked"
v-bind:popupUrl="popupUrl"
v-bind:popupUrl="showAdd ? popupUrl : null"
/>
</div>
</template>
Expand Down Expand Up @@ -83,6 +83,10 @@ export default {
components: { SelectorBase },
emits: ['error', 'ready', 'update:selected', 'valid'],
props: {
showAdd: {
type: Boolean,
default: true,
},
/**
* Whether a crop selection is required or not.
*/
Expand Down
1 change: 1 addition & 0 deletions modules/farm_fd2/src/entrypoints/harvest/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
data-cy="harvest-crop"
v-bind:required="true"
v-bind:showValidityStyling="true"
v-bind:showAdd="false"
v-model:selected="crop"
v-on:error="(msg) => showErrorToast('Network Error', msg)"
/>
Expand Down
8 changes: 8 additions & 0 deletions modules/farm_fd2/src/entrypoints/main/main.exists.e2e.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ describe('FarmData2 Main Page - Launch Pad', () => {
altText: 'Transplanting',
path: '/fd2/transplanting',
},
{
text: 'Harvest',
dataCyText: 'harvest-text',
dataCyButton: 'harvest-button',
dataCyIcon: 'harvest-icon',
altText: 'Harvest',
path: '/fd2/harvest',
},
],
},
];
Expand Down
Loading