Be able to edit currently selected client.

This commit is contained in:
HenriT
2021-02-17 11:00:21 +02:00
parent 398f2ba695
commit e2140b638b
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@
<div>
<div>
<ClientSelector :value="invoice.client_name" btn-class="font-weight-bold" @selected="clientSelected"/>
<i class="material-icons md-18 ml-2 pointer d-print-none" v-if="invoice.client" @click="editClient">edit</i>
</div>
<AppEditable :value="invoice.client_address"
suffix=", "
@ -71,6 +72,9 @@ export default {
}),
},
methods: {
editClient() {
this.$router.push({ query: { clientId: this.invoice.client_id } });
},
updateProp(props) {
this.$emit('update', props);
},

View File

@ -6,7 +6,6 @@
<img v-if="team.logo_url"
v-b-modal.team_logo_url
:src="team.logo_url" style="width:100%; max-width:200px;">
<!-- TODO: logo url input -->
<button class="btn btn-sm" v-b-modal.team_logo_url v-else>
<i class="material-icons material-icons-round md-36">file_upload</i>
</button>