Skip to content

Commit

Permalink
Fix UI elements not getting locked on finished campaigns. Closes #771
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed May 11, 2022
1 parent 59c9441 commit e0b01a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/ListSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/views/Campaign.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down

0 comments on commit e0b01a8

Please # to comment.