Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend: disable editing for guests in CampProgram.vue #2376

Merged
merged 1 commit into from
Jan 10, 2022

Conversation

BacLuc
Copy link
Contributor

@BacLuc BacLuc commented Jan 9, 2022

Disable the edit switch.
Add tooltip that guests know why they can't edit the picasso.
Don't show the add button.

Issue: #1415

Danke @usu für die vorarbeit

Disable the edit switch.
Add tooltip that guests know why they can't edit the picasso.
Don't show the add button.

Issue: ecamp#1415
@BacLuc BacLuc mentioned this pull request Jan 9, 2022
33 tasks
Comment on lines +69 to +71
camp () {
return this.period().camp()
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@usu genau aus diesem Grund wäre wohl das CampRoleMixin besser ein composable, oder? Dann wäre garantiert, dass es ein Camp hat.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ja, genau. Dann würdest du das Camp explizit als Parameter an das Composable übergeben.

Mit dem Mixin hat's halt diese explizite Interface-Definition nicht: Du musst selbst wissen, dass das Mixin this.camp erwartet (bzw. über trial und error herausfinden).

@usu usu merged commit 2176d77 into ecamp:devel Jan 10, 2022
@BacLuc BacLuc deleted the guest-readonly-campprogram branch June 19, 2022 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants