diff --git a/web/components/visualization/results-general.js b/web/components/visualization/results-general.js index 314f56ff72df509b422354cced75095c6a2435f5..3061f4dac640f38568b9a37dbdb9c1110480015a 100644 --- a/web/components/visualization/results-general.js +++ b/web/components/visualization/results-general.js @@ -1,8 +1,4 @@ // Imports -import * as Auth from "/services/auth/auth.js"; -import * as PartyModel from "/services/model/party-model.js"; -import * as CandidateListModel from "/services/model/candidateList-model.js"; -import * as AreaModel from "/services/model/area-model.js"; import * as Common from "/services/common/common.js"; export async function mount(where, parent) { @@ -14,15 +10,9 @@ export async function mount(where, parent) { class ResultGeneralComponent { constructor(parent) { this.parent = parent; - this.PartyModel = PartyModel.getPartyModel(); - this.CandidateListModel = CandidateListModel.getCandidateListModel(); - this.AreaModel = AreaModel.getAreaModel(); } async mount(where) { - this.PartyModel.current_user = await Auth.GetUser(); - this.CandidateListModel.current_user = await Auth.GetUser(); - this.AreaModel.current_user = await Auth.GetUser(); const mountpoint = where; document.getElementById(mountpoint).innerHTML = /* HTML */ ` <div class="column is-half">