Fix UI elements not getting locked on finished campaigns. Closes #771

This commit is contained in:
Kailash Nadh 2022-05-11 21:53:34 +05:30
parent 59c9441b3b
commit e0b01a89ef
2 changed files with 4 additions and 3 deletions

View file

@ -5,7 +5,7 @@
<b-tag v-for="l in selectedItems"
:key="l.id"
:class="l.subscriptionStatus"
:closable="true"
:closable="!$props.disabled"
:data-id="l.id"
@close="removeList(l.id)" class="list">
{{ l.name }} <sup v-if="l.optin === 'double'">{{ l.subscriptionStatus }}</sup>
@ -21,7 +21,7 @@
:placeholder="placeholder"
clearable
dropdown-position="top"
:disabled="all.length === 0"
:disabled="all.length === 0 || $props.disabled"
:keep-first="true"
:clear-on-select="true"
:open-on-focus="true"

View file

@ -135,7 +135,8 @@
<b-field v-if="form.headersStr !== '[]' || isHeadersVisible"
label-position="on-border" :message="$t('campaigns.customHeadersHelp')">
<b-input v-model="form.headersStr" name="headers" type="textarea"
placeholder='[{"X-Custom": "value"}, {"X-Custom2": "value"}]' />
placeholder='[{"X-Custom": "value"}, {"X-Custom2": "value"}]'
:disabled="!canEdit" />
</b-field>
</div>
<hr />