mirror of
https://github.com/documize/community.git
synced 2025-08-08 06:55:28 +02:00
github edit remember the repo/branch from meta.config
This commit is contained in:
parent
fb45915688
commit
17ad6671c5
1 changed files with 7 additions and 4 deletions
|
@ -33,10 +33,6 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin,
|
||||||
.then(function(cfg) {
|
.then(function(cfg) {
|
||||||
let config = {};
|
let config = {};
|
||||||
|
|
||||||
try {
|
|
||||||
config = JSON.parse(self.get('meta.config'));
|
|
||||||
} catch (e) {}
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
clientId: cfg.clientID,
|
clientId: cfg.clientID,
|
||||||
callbackUrl: cfg.authorizationCallbackURL,
|
callbackUrl: cfg.authorizationCallbackURL,
|
||||||
|
@ -50,6 +46,13 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin,
|
||||||
branchSince: "",
|
branchSince: "",
|
||||||
branchLines: 30
|
branchLines: 30
|
||||||
};
|
};
|
||||||
|
|
||||||
|
try {
|
||||||
|
let metaConfig = JSON.parse(self.get('meta.config'));
|
||||||
|
config.repo = metaConfig.repo;
|
||||||
|
config.lists = metaConfig.lists;
|
||||||
|
} catch (e) {}
|
||||||
|
|
||||||
self.set('config', config);
|
self.set('config', config);
|
||||||
|
|
||||||
// On auth callback capture code
|
// On auth callback capture code
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue