1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

[WIP] Admin level Jira creds and vendored jira libs

This commit is contained in:
HarveyKandola 2018-08-06 19:39:31 +01:00
parent 0c5ec43c80
commit 7878a244d3
83 changed files with 10569 additions and 28 deletions

View file

@ -19,7 +19,7 @@ export default Service.extend({
// Returns attributes for specified org id.
getOrg(id) {
return this.get('ajax').request(`organizations/${id}`, {
return this.get('ajax').request(`organization/${id}`, {
method: 'GET'
}).then((response) => {
let data = this.get('store').normalize('organization', response);
@ -38,9 +38,22 @@ export default Service.extend({
conversionEndpoint: org.get('conversionEndpoint')
});
return this.get('ajax').request(`organizations/${id}`, {
return this.get('ajax').request(`organization/${id}`, {
method: 'PUT',
data: JSON.stringify(org)
});
},
getOrgSetting(orgId, key) {
return this.get('ajax').request(`organization/${orgId}/setting?key=${key}`, {
method: 'GET'
});
},
saveOrgSetting(orgId, key, config) {
return this.get('ajax').request(`organization/${orgId}/setting?key=${key}`, {
method: 'POST',
data: JSON.stringify(config)
});
}
});