From 17ad6671c59bc45bf43cf6770316ab2db46ba4c6 Mon Sep 17 00:00:00 2001 From: Elliott Stoneham Date: Fri, 3 Jun 2016 16:26:33 +0100 Subject: [PATCH] github edit remember the repo/branch from meta.config --- app/app/components/section/github/type-editor.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/app/components/section/github/type-editor.js b/app/app/components/section/github/type-editor.js index 8bdb85e7..3cbba94e 100644 --- a/app/app/components/section/github/type-editor.js +++ b/app/app/components/section/github/type-editor.js @@ -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