1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-16 18:07:47 +00:00

Fix webhook isDeactivated workspace check

This commit is contained in:
Bram Wiepjes 2025-03-19 00:03:26 +01:00
parent bd82d62b45
commit e9df6f5f15

View file

@ -114,14 +114,14 @@
v-for="webhookEvent in webhookEventTypes" v-for="webhookEvent in webhookEventTypes"
:key="webhookEvent.type" :key="webhookEvent.type"
v-tooltip=" v-tooltip="
webhookEvent.isDeactivated() webhookEvent.isDeactivated(database.workspace.id)
? webhookEvent.getDeactivatedText() ? webhookEvent.getDeactivatedText()
: null : null
" "
class="webhook__type" class="webhook__type"
tooltip-position="bottom-cursor" tooltip-position="bottom-cursor"
@mousedown=" @mousedown="
webhookEvent.isDeactivated() && webhookEvent.isDeactivated(database.workspace.id) &&
!values.events.includes(webhookEvent.type) && !values.events.includes(webhookEvent.type) &&
$refs[`${webhookEvent.getName()}DeactivatedClickModal`][0].show() $refs[`${webhookEvent.getName()}DeactivatedClickModal`][0].show()
" "
@ -130,12 +130,15 @@
:checked="values.events.includes(webhookEvent.type)" :checked="values.events.includes(webhookEvent.type)"
:disabled=" :disabled="
!values.events.includes(webhookEvent.type) && !values.events.includes(webhookEvent.type) &&
webhookEvent.isDeactivated() webhookEvent.isDeactivated(database.workspace.id)
" "
@input="toggleEventType(webhookEvent, $event)" @input="toggleEventType(webhookEvent, $event)"
> >
{{ webhookEvent.getName() }} {{ webhookEvent.getName() }}
<div v-if="webhookEvent.isDeactivated()" class="deactivated-label"> <div
v-if="webhookEvent.isDeactivated(database.workspace.id)"
class="deactivated-label"
>
<i class="iconoir-lock"></i> <i class="iconoir-lock"></i>
</div> </div>
</Checkbox> </Checkbox>
@ -200,7 +203,7 @@
</div> </div>
<component <component
:is="webhookEvent.getDeactivatedClickModal()" :is="webhookEvent.getDeactivatedClickModal()"
v-if="webhookEvent.isDeactivated()" v-if="webhookEvent.isDeactivated(database.workspace.id)"
:ref="`${webhookEvent.getName()}DeactivatedClickModal`" :ref="`${webhookEvent.getName()}DeactivatedClickModal`"
:workspace="database.workspace" :workspace="database.workspace"
:name="webhookEvent.getFeatureName()" :name="webhookEvent.getFeatureName()"