Commit aef78386 authored by Jacob Schatz's avatar Jacob Schatz Committed by Eric Eastwood

Hide icon when not editing.

parent a494badb
...@@ -9,10 +9,6 @@ export default { ...@@ -9,10 +9,6 @@ export default {
buttonLabel() { buttonLabel() {
return this.editMode ? this.__('Cancel edit') : this.__('Edit'); return this.editMode ? this.__('Cancel edit') : this.__('Edit');
}, },
buttonIcon() {
return this.editMode ? [] : ['fa', 'fa-pencil'];
},
}, },
methods: { methods: {
editClicked() { editClicked() {
...@@ -43,7 +39,7 @@ export default { ...@@ -43,7 +39,7 @@ export default {
<template> <template>
<button class="btn btn-default" @click.prevent="editClicked" v-cloak v-if="isCommitable && !activeFile.render_error" :disabled="binary"> <button class="btn btn-default" @click.prevent="editClicked" v-cloak v-if="isCommitable && !activeFile.render_error" :disabled="binary">
<i :class="buttonIcon"></i> <i class="fa fa-pencil" v-if="!editMode"></i>
<span>{{buttonLabel}}</span> <span>{{buttonLabel}}</span>
</button> </button>
</template> </template>
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