mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
do not allow user to edit admin contributions
This commit is contained in:
parent
cdfcaefa84
commit
64d896f973
@ -47,7 +47,7 @@
|
|||||||
<div v-else class="font-weight-bold">{{ amount | GDD }}</div>
|
<div v-else class="font-weight-bold">{{ amount | GDD }}</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="12" md="1" lg="1" class="text-right align-items-center">
|
<b-col cols="12" md="1" lg="1" class="text-right align-items-center">
|
||||||
<div v-if="messagesCount > 0" @click="visible = !visible">
|
<div v-if="messagesCount > 0 && !moderatorId" @click="visible = !visible">
|
||||||
<collapse-icon class="text-right" :visible="visible" />
|
<collapse-icon class="text-right" :visible="visible" />
|
||||||
</div>
|
</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
@ -58,7 +58,7 @@
|
|||||||
>
|
>
|
||||||
<b-col cols="3" class="mr-auto text-center">
|
<b-col cols="3" class="mr-auto text-center">
|
||||||
<div
|
<div
|
||||||
v-if="!['CONFIRMED', 'DELETED'].includes(state) && !allContribution"
|
v-if="!['CONFIRMED', 'DELETED'].includes(state) && !allContribution && !moderatorId"
|
||||||
class="test-delete-contribution pointer mr-3"
|
class="test-delete-contribution pointer mr-3"
|
||||||
@click="deleteContribution({ id })"
|
@click="deleteContribution({ id })"
|
||||||
>
|
>
|
||||||
@ -69,7 +69,7 @@
|
|||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="3" class="text-center">
|
<b-col cols="3" class="text-center">
|
||||||
<div
|
<div
|
||||||
v-if="!['CONFIRMED', 'DELETED'].includes(state) && !allContribution"
|
v-if="!['CONFIRMED', 'DELETED'].includes(state) && !allContribution && !moderatorId"
|
||||||
class="test-edit-contribution pointer mr-3"
|
class="test-edit-contribution pointer mr-3"
|
||||||
@click="
|
@click="
|
||||||
$emit('update-contribution-form', {
|
$emit('update-contribution-form', {
|
||||||
@ -84,9 +84,8 @@
|
|||||||
<div>{{ $t('edit') }}</div>
|
<div>{{ $t('edit') }}</div>
|
||||||
</div>
|
</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
|
|
||||||
<b-col cols="6" class="text-center">
|
<b-col cols="6" class="text-center">
|
||||||
<div v-if="messagesCount > 0" class="pointer" @click="visible = !visible">
|
<div v-if="messagesCount > 0 && !moderatorId" class="pointer" @click="visible = !visible">
|
||||||
<b-icon icon="chat-dots"></b-icon>
|
<b-icon icon="chat-dots"></b-icon>
|
||||||
<div>{{ $t('moderatorChat') }}</div>
|
<div>{{ $t('moderatorChat') }}</div>
|
||||||
</div>
|
</div>
|
||||||
@ -180,6 +179,11 @@ export default {
|
|||||||
required: false,
|
required: false,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
moderatorId: {
|
||||||
|
type: Number,
|
||||||
|
required: false,
|
||||||
|
default: 0,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -187,6 +187,7 @@ export const listContributions = gql`
|
|||||||
messagesCount
|
messagesCount
|
||||||
deniedAt
|
deniedAt
|
||||||
deniedBy
|
deniedBy
|
||||||
|
moderatorId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user