Skip to content

Commit

Permalink
Add 'preconfirm subscription' option to subscriber UI. Closes #526.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 27, 2021
1 parent 76cd4d3 commit 1c8ac0f
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 1 deletion.
14 changes: 13 additions & 1 deletion frontend/src/views/SubscriberForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
:all="lists.results"
></list-selector>

<b-field :message="$t('subscribers.preconfirmHelp')">
<b-checkbox v-model="form.preconfirm"
:native-value="true">{{ $t('subscribers.preconfirm') }}</b-checkbox>
</b-field>

<b-field :label="$t('subscribers.attribs')" label-position="on-border"
:message="$t('subscribers.attribsHelp') + ' ' + egAttribs">
<div>
Expand Down Expand Up @@ -124,7 +129,12 @@ export default Vue.extend({
return {
// Binds form input values. This is populated by subscriber props passed
// from the parent component in mounted().
form: { lists: [], strAttribs: '{}', status: 'enabled' },
form: {
lists: [],
strAttribs: '{}',
status: 'enabled',
preconfirm: false,
},
isBounceVisible: false,
bounces: [],
visibleMeta: {},
Expand Down Expand Up @@ -199,6 +209,7 @@ export default Vue.extend({
name: this.form.name,
status: this.form.status,
attribs,
preconfirm_subscriptions: this.form.preconfirm,
// List IDs.
lists: this.form.lists.map((l) => l.id),
Expand All @@ -225,6 +236,7 @@ export default Vue.extend({
email: this.form.email,
name: this.form.name,
status: this.form.status,
preconfirm_subscriptions: this.form.preconfirm,
attribs,
// List IDs.
Expand Down
2 changes: 2 additions & 0 deletions i18n/cs-cz.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@
"subscribers.newSubscriber": "Nový odběratel",
"subscribers.numSelected": "{num} vybraných odběratelů",
"subscribers.optinSubject": "Potvrdit odběr",
"subscribers.preconfirm": "Pre-confirm subscriptions",
"subscribers.preconfirmHelp": "Don't send opt-in e-mails and mark all list subscriptions as 'subscribed'.",
"subscribers.query": "Dotaz",
"subscribers.queryPlaceholder": "E-mail nebo jméno",
"subscribers.reset": "Reset",
Expand Down
2 changes: 2 additions & 0 deletions i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@
"subscribers.newSubscriber": "Neuer Abonnent",
"subscribers.numSelected": "{num} Abonnent(en) ausgewählt",
"subscribers.optinSubject": "Abonnement bestätigen",
"subscribers.preconfirm": "Pre-confirm subscriptions",
"subscribers.preconfirmHelp": "Don't send opt-in e-mails and mark all list subscriptions as 'subscribed'.",
"subscribers.query": "Abfrage",
"subscribers.queryPlaceholder": "E-Mail oder Name",
"subscribers.reset": "Zurücksetzen",
Expand Down
2 changes: 2 additions & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@
"subscribers.newSubscriber": "New subscriber",
"subscribers.numSelected": "{num} subscriber(s) selected",
"subscribers.optinSubject": "Confirm subscription",
"subscribers.preconfirm": "Preconfirm subscriptions",
"subscribers.preconfirmHelp": "Don't send opt-in e-mails and mark all list subscriptions as 'subscribed'.",
"subscribers.query": "Query",
"subscribers.queryPlaceholder": "E-mail or name",
"subscribers.reset": "Reset",
Expand Down
2 changes: 2 additions & 0 deletions i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@
"subscribers.newSubscriber": "Nuevo subscriptor",
"subscribers.numSelected": "{num} subscriptores seleccionados",
"subscribers.optinSubject": "Confirmar subscripción",
"subscribers.preconfirm": "Pre-confirm subscriptions",
"subscribers.preconfirmHelp": "Don't send opt-in e-mails and mark all list subscriptions as 'subscribed'.",
"subscribers.query": "Consulta",
"subscribers.queryPlaceholder": "Correo electrónico o nombre",
"subscribers.reset": "Restablecer",
Expand Down
2 changes: 2 additions & 0 deletions i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@
"subscribers.newSubscriber": "Nouvel·le abonné·e",
"subscribers.numSelected": "{num} abonné·e(s) sélectionné·e(s)",
"subscribers.optinSubject": "Confirmer votre abonnement",
"subscribers.preconfirm": "Pre-confirm subscriptions",
"subscribers.preconfirmHelp": "Don't send opt-in e-mails and mark all list subscriptions as 'subscribed'.",
"subscribers.query": "Requête",
"subscribers.queryPlaceholder": "Email ou nom",
"subscribers.reset": "Réinitialiser",
Expand Down
2 changes: 2 additions & 0 deletions i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@
"subscribers.newSubscriber": "Nuovo iscritto",
"subscribers.numSelected": "{num} iscritto(i) selezionato(i)",
"subscribers.optinSubject": "Confermare l'iscrizione",
"subscribers.preconfirm": "Pre-confirm subscriptions",
"subscribers.preconfirmHelp": "Don't send opt-in e-mails and mark all list subscriptions as 'subscribed'.",
"subscribers.query": "Richiesta",
"subscribers.queryPlaceholder": "Email o nome",
"subscribers.reset": "Ripristina",
Expand Down
2 changes: 2 additions & 0 deletions i18n/ml.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@
"subscribers.newSubscriber": "പുതിയ വരിക്കാരൻ",
"subscribers.numSelected": "വരിക്കാരനെ തിരഞ്ഞെടുത്തു | {num} വരിക്കാരെ തിരഞ്ഞെടുത്തു",
"subscribers.optinSubject": "വരിക്കാരനാകുന്നത് തീർപ്പാക്കുക",
"subscribers.preconfirm": "Pre-confirm subscriptions",
"subscribers.preconfirmHelp": "Don't send opt-in e-mails and mark all list subscriptions as 'subscribed'.",
"subscribers.query": "ചോദ്യം",
"subscribers.queryPlaceholder": "പേരോ ഇ-മെയിൽ വിലാസമോ",
"subscribers.reset": "പുനഃസജ്ജമാക്കുക",
Expand Down
2 changes: 2 additions & 0 deletions i18n/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@
"subscribers.newSubscriber": "Nowy subskrybent",
"subscribers.numSelected": "Wybrano {num} subskrypcji",
"subscribers.optinSubject": "Potwierdź subskrypcję",
"subscribers.preconfirm": "Pre-confirm subscriptions",
"subscribers.preconfirmHelp": "Don't send opt-in e-mails and mark all list subscriptions as 'subscribed'.",
"subscribers.query": "Zapytanie",
"subscribers.queryPlaceholder": "E-mail lub nazwa",
"subscribers.reset": "Resetuj",
Expand Down
2 changes: 2 additions & 0 deletions i18n/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@
"subscribers.newSubscriber": "Novo inscrito",
"subscribers.numSelected": "{num} inscrito(s) selecionado(s)",
"subscribers.optinSubject": "Confirmar a inscrição",
"subscribers.preconfirm": "Pre-confirm subscriptions",
"subscribers.preconfirmHelp": "Don't send opt-in e-mails and mark all list subscriptions as 'subscribed'.",
"subscribers.query": "Consulta",
"subscribers.queryPlaceholder": "E-mail ou nome",
"subscribers.reset": "Redefinir",
Expand Down
2 changes: 2 additions & 0 deletions i18n/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@
"subscribers.newSubscriber": "Novo subscritor",
"subscribers.numSelected": "{num} subscritor(es) selecionados",
"subscribers.optinSubject": "Confirmar subscrição",
"subscribers.preconfirm": "Pre-confirm subscriptions",
"subscribers.preconfirmHelp": "Don't send opt-in e-mails and mark all list subscriptions as 'subscribed'.",
"subscribers.query": "Query",
"subscribers.queryPlaceholder": "E-mail ou nome",
"subscribers.reset": "Repor",
Expand Down
2 changes: 2 additions & 0 deletions i18n/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@
"subscribers.newSubscriber": "Abonat nou",
"subscribers.numSelected": "{număr} abonați selectați",
"subscribers.optinSubject": "Confirmă abonarea",
"subscribers.preconfirm": "Pre-confirm subscriptions",
"subscribers.preconfirmHelp": "Don't send opt-in e-mails and mark all list subscriptions as 'subscribed'.",
"subscribers.query": "Interogare",
"subscribers.queryPlaceholder": "Email sau nume",
"subscribers.reset": "Reset",
Expand Down
2 changes: 2 additions & 0 deletions i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@
"subscribers.newSubscriber": "Новый подписчик",
"subscribers.numSelected": "{num} подписчика(ов) выбрано",
"subscribers.optinSubject": "Подтвердить подписку",
"subscribers.preconfirm": "Pre-confirm subscriptions",
"subscribers.preconfirmHelp": "Don't send opt-in e-mails and mark all list subscriptions as 'subscribed'.",
"subscribers.query": "Запрос",
"subscribers.queryPlaceholder": "E-mail или имя",
"subscribers.reset": "Сброс",
Expand Down
2 changes: 2 additions & 0 deletions i18n/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@
"subscribers.newSubscriber": "Yeni üye",
"subscribers.numSelected": "{num} üye(ler) seçildi",
"subscribers.optinSubject": "Üyeliği doğrula",
"subscribers.preconfirm": "Pre-confirm subscriptions",
"subscribers.preconfirmHelp": "Don't send opt-in e-mails and mark all list subscriptions as 'subscribed'.",
"subscribers.query": "Sorgu",
"subscribers.queryPlaceholder": "E-posta veya isim",
"subscribers.reset": "Sıfırla",
Expand Down

0 comments on commit 1c8ac0f

Please sign in to comment.