1
0
Fork 0
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:
Elliott Stoneham 2016-06-03 16:26:33 +01:00
parent fb45915688
commit 17ad6671c5

View file

@ -33,10 +33,6 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin,
.then(function(cfg) {
let config = {};
try {
config = JSON.parse(self.get('meta.config'));
} catch (e) {}
config = {
clientId: cfg.clientID,
callbackUrl: cfg.authorizationCallbackURL,
@ -50,6 +46,13 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin,
branchSince: "",
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);
// On auth callback capture code