Lines 2-8
Link Here
|
2 |
<div v-if="!initialized">{{ $__("Loading") }}</div> |
2 |
<div v-if="!initialized">{{ $__("Loading") }}</div> |
3 |
<div v-else id="agreements_show"> |
3 |
<div v-else id="agreements_show"> |
4 |
<Toolbar> |
4 |
<Toolbar> |
5 |
<ToolbarButton action="edit" @editResource="edit_agreement" /> |
5 |
<ToolbarButton |
|
|
6 |
action="edit" |
7 |
:to="{ |
8 |
name: 'AgreementsFormAddEdit', |
9 |
params: { agreement_id: agreement.agreement_id }, |
10 |
}" |
11 |
/> |
6 |
<ToolbarButton action="delete" @deleteResource="delete_agreement" /> |
12 |
<ToolbarButton action="delete" @deleteResource="delete_agreement" /> |
7 |
</Toolbar> |
13 |
</Toolbar> |
8 |
|
14 |
|
Lines 383-394
export default {
Link Here
|
383 |
error => {} |
389 |
error => {} |
384 |
) |
390 |
) |
385 |
}, |
391 |
}, |
386 |
edit_agreement: function () { |
|
|
387 |
this.$router.push({ |
388 |
name: "AgreementsFormAddEdit", |
389 |
params: { agreement_id: this.agreement.agreement_id }, |
390 |
}) |
391 |
}, |
392 |
delete_agreement: function () { |
392 |
delete_agreement: function () { |
393 |
let agreement_id = this.agreement.agreement_id |
393 |
let agreement_id = this.agreement.agreement_id |
394 |
let agreement_name = this.agreement.name |
394 |
let agreement_name = this.agreement.name |