This commit is contained in:
Michael Geers 2026-06-01 14:55:23 +02:00
parent b0c56c0a0d
commit a0a110580d

View file

@ -311,16 +311,6 @@ export default defineComponent({
selectedRegion: settings.savingsRegion || ("Germany" as string),
};
},
mounted() {
const modal = this.$refs["modal"] as HTMLElement;
modal.addEventListener("shown.bs.modal", this.handleShown);
modal.addEventListener("hidden.bs.modal", this.handleHidden);
},
unmounted() {
const modal = this.$refs["modal"] as HTMLElement;
modal?.removeEventListener("shown.bs.modal", this.handleShown);
modal?.removeEventListener("hidden.bs.modal", this.handleHidden);
},
computed: {
sponsorActive(): boolean {
return !!this.sponsor?.status?.name;
@ -429,6 +419,16 @@ export default defineComponent({
return this.indicatorValueFor(this.indicator, true);
},
},
mounted() {
const modal = this.$refs["modal"] as HTMLElement;
modal.addEventListener("shown.bs.modal", this.handleShown);
modal.addEventListener("hidden.bs.modal", this.handleHidden);
},
unmounted() {
const modal = this.$refs["modal"] as HTMLElement;
modal?.removeEventListener("shown.bs.modal", this.handleShown);
modal?.removeEventListener("hidden.bs.modal", this.handleHidden);
},
methods: {
showCommunity() {
this.communityView = true;