1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 08:09:43 +02:00

Fetching Jira issues

This commit is contained in:
HarveyKandola 2018-08-07 19:15:25 +01:00
parent 7878a244d3
commit 0f9602e3a0
8 changed files with 196 additions and 334 deletions

View file

@ -48,6 +48,20 @@ export default BaseService.extend({
});
},
// Requests data from the specified section handler, passing the method and document ID
// and POST payload.
fetchText(page, method, data) {
let documentId = page.get('documentId');
let section = page.get('contentType');
let url = `sections?documentID=${documentId}&section=${section}&method=${method}`;
return this.get('ajax').post(url, {
data: JSON.stringify(data),
contentType: "application/json",
dataType: "html"
});
},
// Did any dynamic sections change? Fetch and send up for rendering?
refresh(documentId) {
let url = `sections/refresh?documentID=${documentId}`;