Skip to content

Commit 183fb8b

Browse files
authored
Merge pull request #8029 from BacLuc/fix-warning-creating-camp-without-prototype
frontend: fix showing warning if no prototype is selected
2 parents 57844e0 + 69d4abf commit 183fb8b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

e2e/specs/zz-createCamp.cy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('create new camp', () => {
2828
cy.get('[data-testid="create-camp-next-step"]').click()
2929
cy.get('.v-select__selections > [data-testid="prototype-select"]').click()
3030
cy.contains('Keine Vorlage').click()
31+
cy.contains('Achtung: Du hast "Keine Vorlage" ausgewählt.').should('be.visible')
3132
cy.get('[data-testid="create-camp-button"]').click()
3233

3334
cy.contains('Lagerinfos').should('be.visible')

frontend/src/components/campCreate/CampCreateStep2.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
</v-list>
151151
</div>
152152
<v-alert
153-
v-if="localCamp.campPrototype === 'none'"
153+
v-if="selectedPrototypeValue === 'none'"
154154
color="#0661ab"
155155
elevation="0"
156156
text

0 commit comments

Comments
 (0)