Skip to content

Commit

Permalink
Merge pull request #57 from facade/fix-issue#24
Browse files Browse the repository at this point in the history
Fix context tab crash when not using git (#24)
  • Loading branch information
freekmurze committed Sep 2, 2019
2 parents 14e6251 + 36d4912 commit fc8a2b0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions resources/js/components/Tabs/ContextTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<div class="layout-col">
<section v-if="git" class="tab-content-section border-none">
<DefinitionList title="Git">
<DefinitionListRow label="Repository">
<DefinitionListRow v-if="repoUrl" label="Repository">
<a class="underline" :href="repoUrl" target="_blank">{{ repoUrl }}</a>
</DefinitionListRow>
<DefinitionListRow label="Message">
<DefinitionListRow v-if="git.message" label="Message">
<a :href="commitUrl" target="_blank">
“{{ git.message }}” –
<code class="code underline">{{ git.hash }}</code>
Expand Down Expand Up @@ -99,6 +99,10 @@ export default {
},
repoUrl() {
if (!this.git.remote) {
return null;
}
const git = {
...this.repoInfo,
git_suffix: false,
Expand Down

0 comments on commit fc8a2b0

Please sign in to comment.