|
@ -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" }); |
|
|
}); |
|
|
}); |
|
|