mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-27 16:01:07 -04:00
Be able to edit currently selected client.
This commit is contained in:
@ -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);
|
||||
},
|
||||
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user