Skip to content

Commit

Permalink
Merge pull request #48 from OpenTechStrategies/last-fixes
Browse files Browse the repository at this point in the history
Last fixes
  • Loading branch information
slifty authored Oct 1, 2021
2 parents 0931184 + a4f76e8 commit 6cae5aa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cgap/static/apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ app.component('LinkedAutofillInput', {
methods: {
fetchOrganizations(query) {
try {
const url = `/api/organizations`
const url = `/poc-demo/api/organizations`
var request = new XMLHttpRequest();
request.open('GET', url, true);

Expand Down
6 changes: 3 additions & 3 deletions cgap/static/organization.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ app.component('Organization', {
computed: {},
methods: {
generateProposalViewUrl(id) {
return `/proposal/${id}`;
return `/poc-demo/proposal/${id}`;
},
loadOrganization(query) {
try {
const url = `/api/organizations/${this.organizationId}`
const url = `/poc-demo/api/organizations/${this.organizationId}`
var request = new XMLHttpRequest();
request.open('GET', url, true);

Expand All @@ -61,7 +61,7 @@ app.component('Organization', {
},
loadProposals(query) {
try {
const url = `/api/organizations/${this.organizationId}/proposals`
const url = `/poc-demo/api/organizations/${this.organizationId}/proposals`
var request = new XMLHttpRequest();
request.open('GET', url, true);

Expand Down
4 changes: 2 additions & 2 deletions cgap/static/proposal.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ app.component('Proposal', {
methods: {
loadProposal(query) {
try {
const url = `/api/proposals/${this.proposalId}`
const url = `/poc-demo/api/proposals/${this.proposalId}`
var request = new XMLHttpRequest();
request.open('GET', url, true);

Expand All @@ -67,7 +67,7 @@ app.component('Proposal', {
} catch {}
},
generateOrganizationViewUrl(id) {
return `/organization/${id}`;
return `/poc-demo/organization/${id}`;
}
},

Expand Down
6 changes: 3 additions & 3 deletions cgap/static/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ app.component('ProposalSearch', {
methods: {
fetchProposals(query) {
try {
const url = `/api/proposals`
const url = `/poc-demo/api/proposals`
var request = new XMLHttpRequest();
request.open('GET', url, true);

Expand All @@ -99,10 +99,10 @@ app.component('ProposalSearch', {
this.fetchProposals(event.target.value);
},
generateProposalViewUrl(id) {
return `/proposal/${id}`;
return `/poc-demo/proposal/${id}`;
},
generateOrganizationViewUrl(id) {
return `/organization/${id}`;
return `/poc-demo/organization/${id}`;
}
},

Expand Down

0 comments on commit 6cae5aa

Please sign in to comment.