import statusIcon from '../mr_widget_status_icon.vue'; import tooltip from '../../../vue_shared/directives/tooltip'; import mrWidgetMergeHelp from '../../components/mr_widget_merge_help'; export default { name: 'MRWidgetMissingBranch', props: { mr: { type: Object, required: true }, }, directives: { tooltip, }, components: { 'mr-widget-merge-help': mrWidgetMergeHelp, statusIcon, }, computed: { missingBranchName() { return this.mr.sourceBranchRemoved ? 'source' : 'target'; }, message() { return `If the ${this.missingBranchName} branch exists in your local repository, you can merge this merge request manually using the command line`; }, }, template: `
{{missingBranchName}} branch does not exist. Please restore it or use a different {{missingBranchName}} branch
`, };