diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-01 15:10:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-01 15:10:18 +0300 |
commit | 3a5bee787984a139396c64372b6e14c4cb26efc1 (patch) | |
tree | 495ae8868be3aa62c7446bd81c398ee7e098cc64 /app/assets/javascripts/integrations | |
parent | 58c42f2f454c5223062b08a47c5add4e52ad677f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/integrations')
-rw-r--r-- | app/assets/javascripts/integrations/constants.js | 2 | ||||
-rw-r--r-- | app/assets/javascripts/integrations/edit/components/trigger_fields.vue | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/integrations/constants.js b/app/assets/javascripts/integrations/constants.js index 2806b785816..392dd63b089 100644 --- a/app/assets/javascripts/integrations/constants.js +++ b/app/assets/javascripts/integrations/constants.js @@ -85,10 +85,12 @@ export const billingPlanNames = { }; const INTEGRATION_TYPE_SLACK = 'slack'; +const INTEGRATION_TYPE_SLACK_APPLICATION = 'gitlab_slack_application'; const INTEGRATION_TYPE_MATTERMOST = 'mattermost'; export const placeholderForType = { [INTEGRATION_TYPE_SLACK]: __('#general, #development'), + [INTEGRATION_TYPE_SLACK_APPLICATION]: __('#general, #development'), [INTEGRATION_TYPE_MATTERMOST]: __('my-channel'), }; diff --git a/app/assets/javascripts/integrations/edit/components/trigger_fields.vue b/app/assets/javascripts/integrations/edit/components/trigger_fields.vue index 67647cadf19..3820a87e5ad 100644 --- a/app/assets/javascripts/integrations/edit/components/trigger_fields.vue +++ b/app/assets/javascripts/integrations/edit/components/trigger_fields.vue @@ -23,7 +23,7 @@ export default { }, computed: { ...mapGetters(['isInheriting']), - placeholder() { + defaultPlaceholder() { return placeholderForType[this.type]; }, }, @@ -55,7 +55,7 @@ export default { v-if="event.field" v-model="event.field.value" :name="fieldName(event.field.name)" - :placeholder="placeholder" + :placeholder="event.field.placeholder || defaultPlaceholder" :readonly="isInheriting" /> </gl-form-group> |