Commit ac8393b1 authored by Jacob Schatz's avatar Jacob Schatz Committed by Eric Eastwood

Remove getBranch to use currentBranch

parent 1ae5cd9d
......@@ -46,17 +46,19 @@ export default {
<div class="repository-view tree-content-holder">
<repo-sidebar/><div class="panel-right" :class="{'edit-mode': editMode}">
<repo-tabs/>
<component :is="currentBlobView" class="blob-viewer-container"/>
<component
:is="currentBlobView"
class="blob-viewer-container"/>
<repo-file-buttons/>
</div>
<repo-commit-section/>
<popup-dialog
v-show="dialog.open"
:primary-button-label="__('Discard changes')"
:open="dialog.open"
kind="warning"
:title="__('Are you sure?')"
:body="__('Are you sure you want to discard your changes?')"
@toggle="dialogToggled"
@toggle="toggleDialogOpen"
@submit="dialogSubmitted"
/>
</div>
......
......@@ -12,7 +12,7 @@ const RepoCommitSection = {
computed: {
branchPaths() {
const branch = Helper.getBranch();
const branch = this.currentBranch;
return this.changedFiles.map(f => Helper.getFilePathFromFullPath(f.url, branch));
},
......
......@@ -3,7 +3,6 @@ const PopupDialog = {
name: 'popup-dialog',
props: {
open: Boolean,
title: String,
body: String,
kind: {
......@@ -47,7 +46,7 @@ const PopupDialog = {
export default PopupDialog;
</script>
<template>
<div class="modal popup-dialog" tabindex="-1" v-show="open" role="dialog">
<div class="modal popup-dialog" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment