|
@ -197,11 +197,17 @@ 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 }); |
|
|
console.log("Got resp data:", resp.data); |
|
|
console.log("Got resp data:", resp.data); |
|
|
if (resp.data?.success?.fullIri) { |
|
|
// handleId is new in server v release-1.6.0; remove fullIri when that |
|
|
|
|
|
// version shows up here: https://endorser.ch:3000/api-docs/ |
|
|
|
|
|
if (resp.data?.success?.handleId || resp.data?.success?.fullIri) { |
|
|
this.errorMessage = ""; |
|
|
this.errorMessage = ""; |
|
|
this.alertTitle = ""; |
|
|
this.alertTitle = ""; |
|
|
this.alertMessage = ""; |
|
|
this.alertMessage = ""; |
|
|
useAppStore().setProjectId(resp.data.success.fullIri); |
|
|
// handleId is new in server v release-1.6.0; remove fullIri when that |
|
|
|
|
|
// version shows up here: https://endorser.ch:3000/api-docs/ |
|
|
|
|
|
useAppStore().setProjectId( |
|
|
|
|
|
resp.data.success.handleId || resp.data.success.fullIri |
|
|
|
|
|
); |
|
|
setTimeout( |
|
|
setTimeout( |
|
|
function (that: Vue) { |
|
|
function (that: Vue) { |
|
|
const route = { |
|
|
const route = { |
|
|