Lines 210-215
export default {
Link Here
|
210 |
this.$emit("close") |
210 |
this.$emit("close") |
211 |
}, |
211 |
}, |
212 |
filter_table: async function () { |
212 |
filter_table: async function () { |
|
|
213 |
if (this.filters.by_expired) { |
214 |
if (!this.filters.max_expiration_date) |
215 |
this.filters.max_expiration_date = new Date() |
216 |
.toISOString() |
217 |
.substring(0, 10) |
218 |
} |
213 |
if (this.before_route_entered) { |
219 |
if (this.before_route_entered) { |
214 |
let new_route = build_url( |
220 |
let new_route = build_url( |
215 |
"/cgi-bin/koha/erm/agreements", |
221 |
"/cgi-bin/koha/erm/agreements", |
Lines 217-228
export default {
Link Here
|
217 |
) |
223 |
) |
218 |
this.$router.push(new_route) |
224 |
this.$router.push(new_route) |
219 |
} |
225 |
} |
220 |
if (this.filters.by_expired) { |
|
|
221 |
if (!this.filters.max_expiration_date) |
222 |
this.filters.max_expiration_date = new Date() |
223 |
.toISOString() |
224 |
.substring(0, 10) |
225 |
} |
226 |
this.$refs.table.redraw(this.table_url()) |
226 |
this.$refs.table.redraw(this.table_url()) |
227 |
}, |
227 |
}, |
228 |
getTableColumns: function () { |
228 |
getTableColumns: function () { |
229 |
- |
|
|