Commit e1ec70cf authored by Phil Hughes's avatar Phil Hughes

more karma fixes

parent 39ed07a8
...@@ -45,7 +45,8 @@ export default { ...@@ -45,7 +45,8 @@ export default {
}, },
activeFileKey: { activeFileKey: {
type: String, type: String,
required: true, required: false,
default: null,
}, },
}, },
data() { data() {
......
...@@ -32,7 +32,8 @@ export default { ...@@ -32,7 +32,8 @@ export default {
}, },
activeFileKey: { activeFileKey: {
type: String, type: String,
required: true, required: false,
default: null,
}, },
}, },
computed: { computed: {
......
...@@ -32,6 +32,9 @@ export default { ...@@ -32,6 +32,9 @@ export default {
showStageUnstageArea() { showStageUnstageArea() {
return !!(this.someUncommitedChanges || this.lastCommitMsg || !this.unusedSeal); return !!(this.someUncommitedChanges || this.lastCommitMsg || !this.unusedSeal);
}, },
activeFileKey() {
return this.activeFile ? this.activeFile.key : null;
},
}, },
watch: { watch: {
hasChanges() { hasChanges() {
...@@ -93,7 +96,7 @@ export default { ...@@ -93,7 +96,7 @@ export default {
action="stageAllChanges" action="stageAllChanges"
:action-btn-text="__('Stage all')" :action-btn-text="__('Stage all')"
item-action-component="stage-button" item-action-component="stage-button"
:active-file-key="activeFile.key" :active-file-key="activeFileKey"
/> />
<commit-files-list <commit-files-list
icon-name="staged" icon-name="staged"
...@@ -103,7 +106,7 @@ export default { ...@@ -103,7 +106,7 @@ export default {
:action-btn-text="__('Unstage all')" :action-btn-text="__('Unstage all')"
item-action-component="unstage-button" item-action-component="unstage-button"
:staged-list="true" :staged-list="true"
:active-file-key="activeFile.key" :active-file-key="activeFileKey"
/> />
</template> </template>
<empty-state <empty-state
......
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