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 { ...@@ -46,17 +46,19 @@ export default {
<div class="repository-view tree-content-holder"> <div class="repository-view tree-content-holder">
<repo-sidebar/><div class="panel-right" :class="{'edit-mode': editMode}"> <repo-sidebar/><div class="panel-right" :class="{'edit-mode': editMode}">
<repo-tabs/> <repo-tabs/>
<component :is="currentBlobView" class="blob-viewer-container"/> <component
:is="currentBlobView"
class="blob-viewer-container"/>
<repo-file-buttons/> <repo-file-buttons/>
</div> </div>
<repo-commit-section/> <repo-commit-section/>
<popup-dialog <popup-dialog
v-show="dialog.open"
:primary-button-label="__('Discard changes')" :primary-button-label="__('Discard changes')"
:open="dialog.open"
kind="warning" kind="warning"
:title="__('Are you sure?')" :title="__('Are you sure?')"
:body="__('Are you sure you want to discard your changes?')" :body="__('Are you sure you want to discard your changes?')"
@toggle="dialogToggled" @toggle="toggleDialogOpen"
@submit="dialogSubmitted" @submit="dialogSubmitted"
/> />
</div> </div>
......
...@@ -12,7 +12,7 @@ const RepoCommitSection = { ...@@ -12,7 +12,7 @@ const RepoCommitSection = {
computed: { computed: {
branchPaths() { branchPaths() {
const branch = Helper.getBranch(); const branch = this.currentBranch;
return this.changedFiles.map(f => Helper.getFilePathFromFullPath(f.url, branch)); return this.changedFiles.map(f => Helper.getFilePathFromFullPath(f.url, branch));
}, },
......
...@@ -3,7 +3,6 @@ const PopupDialog = { ...@@ -3,7 +3,6 @@ const PopupDialog = {
name: 'popup-dialog', name: 'popup-dialog',
props: { props: {
open: Boolean,
title: String, title: String,
body: String, body: String,
kind: { kind: {
...@@ -47,7 +46,7 @@ const PopupDialog = { ...@@ -47,7 +46,7 @@ const PopupDialog = {
export default PopupDialog; export default PopupDialog;
</script> </script>
<template> <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-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <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