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