Lines 1-7
Link Here
|
1 |
<template> |
1 |
<template> |
2 |
<div v-if="!initialized">{{ $__("Loading") }}</div> |
2 |
<div v-if="!initialized">{{ $__("Loading") }}</div> |
3 |
<div v-else id="agreements_list"> |
3 |
<div v-else id="agreements_list"> |
4 |
<Toolbar v-if="!embedded" /> |
4 |
<Toolbar v-if="!embedded" :options="this.toolbar_options" /> |
5 |
<fieldset v-if="agreement_count > 0" class="filters"> |
5 |
<fieldset v-if="agreement_count > 0" class="filters"> |
6 |
<label for="expired_filter">{{ $__("Filter by expired") }}:</label> |
6 |
<label for="expired_filter">{{ $__("Filter by expired") }}:</label> |
7 |
<input |
7 |
<input |
Lines 51-57
Link Here
|
51 |
|
51 |
|
52 |
<script> |
52 |
<script> |
53 |
import flatPickr from "vue-flatpickr-component" |
53 |
import flatPickr from "vue-flatpickr-component" |
54 |
import Toolbar from "./AgreementsToolbar.vue" |
54 |
import Toolbar from "../Toolbar.vue" |
55 |
import { inject, ref, reactive } from "vue" |
55 |
import { inject, ref, reactive } from "vue" |
56 |
import { APIClient } from "../../fetch/api-client.js" |
56 |
import { APIClient } from "../../fetch/api-client.js" |
57 |
import { storeToRefs } from "pinia" |
57 |
import { storeToRefs } from "pinia" |
Lines 148-153
export default {
Link Here
|
148 |
}, |
148 |
}, |
149 |
}, |
149 |
}, |
150 |
}, |
150 |
}, |
|
|
151 |
before_route_entered: false, |
152 |
building_table: false, |
153 |
toolbar_options: [ |
154 |
{ |
155 |
to: "AgreementsFormAdd", |
156 |
button_title: "New agreement", |
157 |
}, |
158 |
], |
151 |
} |
159 |
} |
152 |
}, |
160 |
}, |
153 |
beforeRouteEnter(to, from, next) { |
161 |
beforeRouteEnter(to, from, next) { |