Lines 2-23
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 |
5 |
<ToolbarButton type="edit" @edit-clicked="edit_agreement" /> |
6 |
:to="{ |
6 |
<ToolbarButton type="delete" @delete-clicked="delete_agreement" /> |
7 |
name: 'AgreementsFormAddEdit', |
|
|
8 |
params: { agreement_id: agreement.agreement_id }, |
9 |
}" |
10 |
class="btn btn-default" |
11 |
icon="pencil" |
12 |
:title="$__('Edit')" |
13 |
/> |
14 |
<a |
15 |
@click=" |
16 |
delete_agreement(agreement.agreement_id, agreement.name) |
17 |
" |
18 |
class="btn btn-default" |
19 |
><font-awesome-icon icon="trash" /> {{ $__("Delete") }}</a |
20 |
> |
21 |
</Toolbar> |
7 |
</Toolbar> |
22 |
|
8 |
|
23 |
<h2> |
9 |
<h2> |
Lines 397-403
export default {
Link Here
|
397 |
error => {} |
383 |
error => {} |
398 |
) |
384 |
) |
399 |
}, |
385 |
}, |
400 |
delete_agreement: function (agreement_id, agreement_name) { |
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 () { |
393 |
let agreement_id = this.agreement.agreement_id |
394 |
let agreement_name = this.agreement.name |
395 |
|
401 |
this.setConfirmationDialog( |
396 |
this.setConfirmationDialog( |
402 |
{ |
397 |
{ |
403 |
title: this.$__( |
398 |
title: this.$__( |