mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-29 00:41:08 -04:00
Be able to edit currently selected client.
This commit is contained in:
@ -2,6 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<ClientSelector :value="invoice.client_name" btn-class="font-weight-bold" @selected="clientSelected"/>
|
<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>
|
</div>
|
||||||
<AppEditable :value="invoice.client_address"
|
<AppEditable :value="invoice.client_address"
|
||||||
suffix=", "
|
suffix=", "
|
||||||
@ -71,6 +72,9 @@ export default {
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
editClient() {
|
||||||
|
this.$router.push({ query: { clientId: this.invoice.client_id } });
|
||||||
|
},
|
||||||
updateProp(props) {
|
updateProp(props) {
|
||||||
this.$emit('update', props);
|
this.$emit('update', props);
|
||||||
},
|
},
|
||||||
|
|||||||
@ -6,7 +6,6 @@
|
|||||||
<img v-if="team.logo_url"
|
<img v-if="team.logo_url"
|
||||||
v-b-modal.team_logo_url
|
v-b-modal.team_logo_url
|
||||||
:src="team.logo_url" style="width:100%; max-width:200px;">
|
: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>
|
<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>
|
<i class="material-icons material-icons-round md-36">file_upload</i>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user