mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 07:52:43 +00:00
Remove unused getter
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
0110124b32
commit
549b82c94a
1 changed files with 0 additions and 23 deletions
|
@ -1309,29 +1309,6 @@ export default class Event extends EventMixin {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
get shouldShowParticipationButton(): boolean {
|
|
||||||
// So that people can cancel their participation
|
|
||||||
if (
|
|
||||||
this.actorIsParticipant ||
|
|
||||||
(this.config.anonymous.participation.allowed &&
|
|
||||||
this.anonymousParticipation)
|
|
||||||
)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
// You can participate to draft or cancelled events
|
|
||||||
if (this.event.draft || this.event.status === EventStatus.CANCELLED)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// Organizer can't participate
|
|
||||||
if (this.actorIsOrganizer) return false;
|
|
||||||
|
|
||||||
// If capacity is OK
|
|
||||||
if (this.eventCapacityOK) return true;
|
|
||||||
|
|
||||||
// Else
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
Loading…
Reference in a new issue