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 action="edit" @editResource="goToResourceEdit" /> |
6 |
<ToolbarButton action="delete" @deleteResource="delete_agreement" /> |
6 |
<ToolbarButton action="delete" @deleteResource="delete_agreement" /> |
7 |
</Toolbar> |
7 |
</Toolbar> |
8 |
|
8 |
|
Lines 333-340
import { APIClient } from "../../fetch/api-client.js"
Link Here
|
333 |
import Toolbar from "../Toolbar.vue" |
333 |
import Toolbar from "../Toolbar.vue" |
334 |
import ToolbarButton from "../ToolbarButton.vue" |
334 |
import ToolbarButton from "../ToolbarButton.vue" |
335 |
import AdditionalFieldsDisplay from "../AdditionalFieldsDisplay.vue" |
335 |
import AdditionalFieldsDisplay from "../AdditionalFieldsDisplay.vue" |
|
|
336 |
import AgreementResource from "./AgreementResource.vue" |
336 |
|
337 |
|
337 |
export default { |
338 |
export default { |
|
|
339 |
extends: AgreementResource, |
338 |
setup() { |
340 |
setup() { |
339 |
const format_date = $date |
341 |
const format_date = $date |
340 |
const patron_to_html = $patron_to_html |
342 |
const patron_to_html = $patron_to_html |
Lines 345-350
export default {
Link Here
|
345 |
const { get_lib_from_av } = AVStore |
347 |
const { get_lib_from_av } = AVStore |
346 |
|
348 |
|
347 |
return { |
349 |
return { |
|
|
350 |
...AgreementResource.setup(), |
348 |
format_date, |
351 |
format_date, |
349 |
patron_to_html, |
352 |
patron_to_html, |
350 |
get_lib_from_av, |
353 |
get_lib_from_av, |
Lines 393-404
export default {
Link Here
|
393 |
error => {} |
396 |
error => {} |
394 |
) |
397 |
) |
395 |
}, |
398 |
}, |
396 |
edit_agreement: function () { |
|
|
397 |
this.$router.push({ |
398 |
name: "AgreementsFormAddEdit", |
399 |
params: { agreement_id: this.agreement.agreement_id }, |
400 |
}) |
401 |
}, |
402 |
delete_agreement: function () { |
399 |
delete_agreement: function () { |
403 |
let agreement_id = this.agreement.agreement_id |
400 |
let agreement_id = this.agreement.agreement_id |
404 |
let agreement_name = this.agreement.name |
401 |
let agreement_name = this.agreement.name |
405 |
- |
|
|