Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-03 18:10:11 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-03 18:10:11 +0300
commit4eef6c2c97b50f2305c561f0e1c6f0e14e661642 (patch)
tree03901d23471c6ad7984f8164297b13725adcd8fb /app/assets/javascripts/notifications
parentb9ae930d02bebaadcd6f019b59240f1304822ef8 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/notifications')
-rw-r--r--app/assets/javascripts/notifications/components/notification_email_listbox_input.vue26
-rw-r--r--app/assets/javascripts/notifications/index.js2
2 files changed, 2 insertions, 26 deletions
diff --git a/app/assets/javascripts/notifications/components/notification_email_listbox_input.vue b/app/assets/javascripts/notifications/components/notification_email_listbox_input.vue
index c58f4856d44..5d5524deb0d 100644
--- a/app/assets/javascripts/notifications/components/notification_email_listbox_input.vue
+++ b/app/assets/javascripts/notifications/components/notification_email_listbox_input.vue
@@ -5,31 +5,7 @@ export default {
components: {
ListboxInput,
},
- inject: {
- label: {
- from: 'label',
- default: '',
- },
- name: {
- from: 'name',
- },
- emails: {
- from: 'emails',
- default: () => [],
- },
- emptyValueText: {
- from: 'emptyValueText',
- required: true,
- },
- value: {
- from: 'value',
- default: '',
- },
- disabled: {
- from: 'disabled',
- default: false,
- },
- },
+ inject: ['label', 'name', 'emails', 'emptyValueText', 'value', 'disabled'],
data() {
return {
selected: this.value,
diff --git a/app/assets/javascripts/notifications/index.js b/app/assets/javascripts/notifications/index.js
index 42271b44e7c..1395084f68c 100644
--- a/app/assets/javascripts/notifications/index.js
+++ b/app/assets/javascripts/notifications/index.js
@@ -10,7 +10,7 @@ const initNotificationEmailListboxInputs = () => {
const els = [...document.querySelectorAll('.js-notification-email-listbox-input')];
els.forEach((el, index) => {
- const { label, name, emptyValueText, value } = el.dataset;
+ const { label, name, emptyValueText, value = '' } = el.dataset;
return new Vue({
el,