Commit 3e8ca5fb authored by Jacob Schatz's avatar Jacob Schatz Committed by Eric Eastwood

Disable file for binary too.

parent 2aede9a4
......@@ -11,7 +11,7 @@ export default {
},
showButton() {
return this.isCommitable && !this.activeFile.render_error;
return this.isCommitable && !this.activeFile.render_error && !this.binary;
}
},
methods: {
......@@ -35,7 +35,7 @@ export default {
</script>
<template>
<button class="btn btn-default" type="button" @click.prevent="editCancelClicked" v-if="showButton" :disabled="binary">
<button class="btn btn-default" type="button" @click.prevent="editCancelClicked" v-if="showButton">
<i class="fa fa-pencil" v-if="!editMode"></i>
<span>{{buttonLabel}}</span>
</button>
......
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