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>2022-09-20 15:11:03 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-20 15:11:03 +0300
commit027f19b39c73b3b98e7cf305fead871626e8b717 (patch)
treed97ff241c76a5655f8f58444ccf76695b1b89bcf /app/assets/javascripts/projects
parenta7b422860c90eecd1b98845d234a8347686fbdcf (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/projects')
-rw-r--r--app/assets/javascripts/projects/settings/branch_rules/components/view/index.vue33
1 files changed, 33 insertions, 0 deletions
diff --git a/app/assets/javascripts/projects/settings/branch_rules/components/view/index.vue b/app/assets/javascripts/projects/settings/branch_rules/components/view/index.vue
new file mode 100644
index 00000000000..58938b6bf96
--- /dev/null
+++ b/app/assets/javascripts/projects/settings/branch_rules/components/view/index.vue
@@ -0,0 +1,33 @@
+<script>
+import { s__ } from '~/locale';
+import { getParameterByName } from '~/lib/utils/url_utility';
+
+export default {
+ name: 'RuleView',
+ i18n: { branch: s__('BranchRules|Target Branch') },
+ components: {},
+ props: {
+ projectPath: {
+ type: String,
+ required: true,
+ },
+ },
+ data() {
+ return {
+ branch: getParameterByName('branch'),
+ protected: getParameterByName('protected'),
+ };
+ },
+};
+</script>
+
+<template>
+ <div>
+ <div class="gl-display-flex gl-flex-direction-column gl-pt-3">
+ <strong>{{ $options.i18n.branch }}</strong>
+ <span class="gl-font-monospace gl-mt-2" data-testid="branch">{{ branch }}</span>
+ </div>
+
+ <!-- TODO: List branch rule details (https://gitlab.com/gitlab-org/gitlab/-/issues/372362) -->
+ </div>
+</template>