Lines 64-70
Link Here
|
64 |
</template> |
64 |
</template> |
65 |
|
65 |
|
66 |
<script> |
66 |
<script> |
67 |
import { fetchPatron } from "../../fetch/erm.js" |
67 |
import { APIClient } from "../../fetch/api-client.js" |
68 |
|
68 |
|
69 |
export default { |
69 |
export default { |
70 |
name: "UserRoles", |
70 |
name: "UserRoles", |
Lines 110-117
export default {
Link Here
|
110 |
let selected_patron_id = |
110 |
let selected_patron_id = |
111 |
document.getElementById("selected_patron_id").value |
111 |
document.getElementById("selected_patron_id").value |
112 |
let patron |
112 |
let patron |
|
|
113 |
const client = APIClient.patron |
113 |
// FIXME We are missing a "loading..." |
114 |
// FIXME We are missing a "loading..." |
114 |
fetchPatron(selected_patron_id).then(p => { |
115 |
client.patrons.get(selected_patron_id).then(p => { |
115 |
patron = p |
116 |
patron = p |
116 |
this.user_roles[c].patron = patron |
117 |
this.user_roles[c].patron = patron |
117 |
this.user_roles[c].patron_str = $patron_to_html(patron) |
118 |
this.user_roles[c].patron_str = $patron_to_html(patron) |