|
@ -192,7 +192,6 @@ import { |
|
|
getHeaders, |
|
|
getHeaders, |
|
|
PlanVerifiableCredential, |
|
|
PlanVerifiableCredential, |
|
|
} from "@/libs/endorserServer"; |
|
|
} from "@/libs/endorserServer"; |
|
|
import { useAppStore } from "@/store/app"; |
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
@Component({ |
|
|
components: { ImageMethodDialog, LMap, LMarker, LTileLayer, QuickNav }, |
|
|
components: { ImageMethodDialog, LMap, LMarker, LTileLayer, QuickNav }, |
|
@ -224,7 +223,7 @@ export default class NewEditProjectView extends Vue { |
|
|
latitude = 0; |
|
|
latitude = 0; |
|
|
longitude = 0; |
|
|
longitude = 0; |
|
|
numAccounts = 0; |
|
|
numAccounts = 0; |
|
|
projectId = localStorage.getItem("projectId") || ""; |
|
|
projectId = ""; |
|
|
projectIssuerDid = ""; |
|
|
projectIssuerDid = ""; |
|
|
startDateInput?: string; |
|
|
startDateInput?: string; |
|
|
startTimeInput?: string; |
|
|
startTimeInput?: string; |
|
@ -240,6 +239,8 @@ export default class NewEditProjectView extends Vue { |
|
|
this.activeDid = (settings?.activeDid as string) || ""; |
|
|
this.activeDid = (settings?.activeDid as string) || ""; |
|
|
this.apiServer = (settings?.apiServer as string) || ""; |
|
|
this.apiServer = (settings?.apiServer as string) || ""; |
|
|
|
|
|
|
|
|
|
|
|
this.projectId = (this.$route as Router).query["projectId"] || ""; |
|
|
|
|
|
|
|
|
if (this.projectId) { |
|
|
if (this.projectId) { |
|
|
if (this.numAccounts === 0) { |
|
|
if (this.numAccounts === 0) { |
|
|
this.errNote("There was a problem loading your account info."); |
|
|
this.errNote("There was a problem loading your account info."); |
|
@ -421,11 +422,8 @@ export default class NewEditProjectView extends Vue { |
|
|
if (resp.data?.success?.handleId) { |
|
|
if (resp.data?.success?.handleId) { |
|
|
this.errorMessage = ""; |
|
|
this.errorMessage = ""; |
|
|
|
|
|
|
|
|
useAppStore() |
|
|
const projectPath = encodeURIComponent(resp.data.success.handleId); |
|
|
.setProjectId(resp.data.success.handleId) |
|
|
(this.$router as Router).push({ path: "/project/" + projectPath }); |
|
|
.then(() => { |
|
|
|
|
|
(this.$router as Router).push({ name: "project" }); |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
console.error( |
|
|
console.error( |
|
|
"Got unexpected 'data' inside response from server", |
|
|
"Got unexpected 'data' inside response from server", |
|
|