debian-mirror-gitlab/app/assets/javascripts/projects/compare/components/revision_card.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.3 KiB
Vue
Raw Normal View History

2021-04-17 20:07:23 +05:30
<script>
import RepoDropdown from './repo_dropdown.vue';
import RevisionDropdown from './revision_dropdown.vue';
export default {
components: {
RepoDropdown,
RevisionDropdown,
},
props: {
refsProjectPath: {
type: String,
required: true,
},
revisionText: {
type: String,
required: true,
},
paramsName: {
type: String,
required: true,
},
paramsBranch: {
type: String,
required: false,
default: null,
},
2021-06-08 01:23:25 +05:30
projects: {
type: Array,
required: false,
default: null,
},
selectedProject: {
type: Object,
required: true,
2021-04-17 20:07:23 +05:30
},
},
};
</script>
<template>
2022-07-23 23:45:48 +05:30
<div class="revision-card gl-flex-basis-half">
<h2 class="gl-font-size-h2">
2021-04-17 20:07:23 +05:30
{{ s__(`CompareRevisions|${revisionText}`) }}
2022-07-23 23:45:48 +05:30
</h2>
2023-03-04 22:38:38 +05:30
<div class="gl-sm-display-flex gl-align-items-center gl-gap-3">
2021-04-17 20:07:23 +05:30
<repo-dropdown
class="gl-sm-w-half"
:params-name="paramsName"
2021-06-08 01:23:25 +05:30
:projects="projects"
:selected-project="selectedProject"
v-on="$listeners"
2021-04-17 20:07:23 +05:30
/>
<revision-dropdown
class="gl-sm-w-half gl-mt-3 gl-sm-mt-0"
2021-06-08 01:23:25 +05:30
:refs-project-path="refsProjectPath"
2021-04-17 20:07:23 +05:30
:params-name="paramsName"
:params-branch="paramsBranch"
2021-06-08 01:23:25 +05:30
v-on="$listeners"
2021-04-17 20:07:23 +05:30
/>
</div>
2022-07-23 23:45:48 +05:30
</div>
2021-04-17 20:07:23 +05:30
</template>