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 {
buttonLabel() {
return this.editMode ? this.__('Cancel edit') : this.__('Edit');
},
buttonIcon() {
return this.editMode ? [] : ['fa', 'fa-pencil'];
},
},
methods: {
editClicked() {
......@@ -43,7 +39,7 @@ export default {
<template>
<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>
</button>
</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