diff --git a/frontend/src/components/ProposalStatusForm.vue b/frontend/src/components/ProposalStatusForm.vue
index 36b4676..d1d10c1 100644
--- a/frontend/src/components/ProposalStatusForm.vue
+++ b/frontend/src/components/ProposalStatusForm.vue
@@ -73,6 +73,6 @@ const onSubmit = handleSubmit(async (values, actions) => {
-
+
diff --git a/frontend/src/views/orga/Proposal.vue b/frontend/src/views/orga/Proposal.vue
index ef789b4..705740c 100644
--- a/frontend/src/views/orga/Proposal.vue
+++ b/frontend/src/views/orga/Proposal.vue
@@ -11,6 +11,8 @@ import ProgressSpinner from "primevue/progressspinner";
import Toast from "primevue/toast";
import Breadcrumb from "primevue/breadcrumb";
import Card from "primevue/card";
+import Button from "primevue/button";
+import InlineMessage from 'primevue/inlinemessage';
import { useDialog } from "primevue/usedialog";
import PrivateKeyForm from "../../components/PrivateKeyForm.vue";
import lf from "localforage";
@@ -31,6 +33,7 @@ const home = ref({
});
const items = ref([]);
const proposalData = ref(null);
+const showOtherOpinions = ref(true)
const getPrivateKey = () => new Promise((resolve, reject) => {
dialog.open(PrivateKeyForm, {
@@ -65,10 +68,12 @@ onMounted(async () => {
})
proposalData.value = proposals[proposal.value.track.slug];
-
myOpinion.value = proposal.value.opinions.find(
- (opinion) => opinion.profile_id === currentUserId.value
+ (opinion) => +opinion.user_id === +currentUserId.value
);
+ if (!myOpinion.value) {
+ showOtherOpinions.value = false
+ }
} catch (error) {
console.error(error);
toast.add({
@@ -120,7 +125,14 @@ const fieldName = (name) => {
-
+
+
+ Die anderen Meinungen sind ausgeblendet, weil du noch nicht abgestimmt hast.
+
+
+
+
+
🗳️ {{ proposal.vote_average }}
@@ -143,18 +155,18 @@ const fieldName = (name) => {
:current-user-id="currentUserId" />
-
-
Alle Meinungen
-
-
- {{ opinion.special_vote || opinion.vote }}
- {{ opinion.user?.username }}
-
- {{ opinion.comment }}
-
-
-
Sei die erste Person die eine Meinung abgibt
-
+
+
Alle Meinungen
+
+
+ {{ opinion.special_vote || opinion.vote }}
+ {{ opinion.user?.username }}
+
+ {{ opinion.comment }}
+
+
+
Sei die erste Person die eine Meinung abgibt
+
Status Ändern