Lines 85-91
Link Here
|
85 |
</template> |
85 |
</template> |
86 |
|
86 |
|
87 |
<script> |
87 |
<script> |
88 |
import { fetchAgreements } from "../../fetch/erm.js" |
88 |
import { APIClient } from "../../fetch/api-client.js" |
89 |
|
89 |
|
90 |
export default { |
90 |
export default { |
91 |
data() { |
91 |
data() { |
Lines 94-104
export default {
Link Here
|
94 |
} |
94 |
} |
95 |
}, |
95 |
}, |
96 |
beforeCreate() { |
96 |
beforeCreate() { |
97 |
fetchAgreements().then(agreements => { |
97 |
const client = APIClient.erm |
98 |
this.agreements = agreements.filter( |
98 |
client.agreements.getAll().then( |
99 |
agreement => agreement.agreement_id !== this.agreement_id |
99 |
agreements => { |
100 |
) |
100 |
this.agreements = agreements.filter( |
101 |
}) |
101 |
agreement => agreement.agreement_id !== this.agreement_id |
|
|
102 |
) |
103 |
this.initialized = true |
104 |
}, |
105 |
error => {} |
106 |
) |
102 |
}, |
107 |
}, |
103 |
methods: { |
108 |
methods: { |
104 |
addRelationship() { |
109 |
addRelationship() { |