diff --git a/app/app/components/section/github/type-editor.js b/app/app/components/section/github/type-editor.js index 3d665b7d..0d3ecfb3 100644 --- a/app/app/components/section/github/type-editor.js +++ b/app/app/components/section/github/type-editor.js @@ -43,7 +43,7 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin, pageId: page.get('id'), showMilestones: false, showIssues: false, - showCommits: false, + showCommits: true, }; try { @@ -58,14 +58,19 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin, config.showCommits = metaConfig.showCommits; } catch (e) {} + if (_.isUndefined(config.showCommits)) { + config.showCommits = true; + } + self.set('config', config); self.set('config.pageId', page.get('id')); // On auth callback capture code let code = window.location.search; + code = code.replace("?mode=edit", ""); if (is.not.undefined(code) && is.not.null(code) && is.not.empty(code) && code !== "") { - let tok = code.replace("?mode=edit&code=", ""); + let tok = code.replace("&code=", ""); self.get('sectionService').fetch(page, "saveSecret", { "token": tok }) .then(function () { self.send('authStage2'); @@ -120,7 +125,6 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin, $('#branch-since').datetimepicker(); this.set('initDateTimePicker', "Done"); } - }, getOrgReposLists() { diff --git a/app/app/pods/document/wizard/controller.js b/app/app/pods/document/wizard/controller.js index 7028393e..db12c927 100644 --- a/app/app/pods/document/wizard/controller.js +++ b/app/app/pods/document/wizard/controller.js @@ -25,7 +25,8 @@ export default Ember.Controller.extend(NotifierMixin, { let meta = { documentId: this.get('model.document.id'), rawBody: "", - config: "" + config: "", + externaleSource: true }; let model = { diff --git a/app/app/styles/view/document/wizard.scss b/app/app/styles/view/document/wizard.scss index a777c490..d49aae6a 100644 --- a/app/app/styles/view/document/wizard.scss +++ b/app/app/styles/view/document/wizard.scss @@ -80,7 +80,6 @@ list-style: none; cursor: pointer; padding: 20px; - float: left; @include ease-in(); &:hover { diff --git a/app/app/templates/components/section/github/type-editor.hbs b/app/app/templates/components/section/github/type-editor.hbs index a6a4276f..bfea2bb4 100644 --- a/app/app/templates/components/section/github/type-editor.hbs +++ b/app/app/templates/components/section/github/type-editor.hbs @@ -18,8 +18,10 @@