remove checks on old fullIri field

This commit is contained in:
2024-01-13 18:48:29 -07:00
parent fa72d38d18
commit 40a8794649
2 changed files with 2 additions and 10 deletions

View File

@@ -2,8 +2,6 @@
tasks: tasks:
- choose an agent - make a contact chooser - choose an agent - make a contact chooser
- remove fullIri
- eliminate setTimeout calls (like we did in NewEditProjectView.vue)
- make set-name request yellow - make set-name request yellow
- make the "give" on contact screen work like other give (allowing donation vs current blank) - make the "give" on contact screen work like other give (allowing donation vs current blank)
- create an identifier automatically, with a message that they can import a different one - create an identifier automatically, with a message that they can import a different one

View File

@@ -311,17 +311,11 @@ export default class NewEditProjectView extends Vue {
try { try {
const resp = await this.axios.post(url, payload, { headers }); const resp = await this.axios.post(url, payload, { headers });
// handleId is new in server v release-1.6.0; remove fullIri when that if (resp.data?.success?.handleId) {
// version shows up here: https://api.endorser.ch/api-docs/
if (resp.data?.success?.handleId || resp.data?.success?.fullIri) {
this.errorMessage = ""; this.errorMessage = "";
// handleId is new in server v release-1.6.0; remove fullIri when that
// version shows up here: https://api.endorser.ch/api-docs/
useAppStore() useAppStore()
.setProjectId( .setProjectId(resp.data.success.handleId)
resp.data.success.handleId || resp.data.success.fullIri,
)
.then(() => { .then(() => {
this.$router.push({ name: "project" }); this.$router.push({ name: "project" });
}); });