Fixed users profile link in sidebar

Fixed new labels not being created

Fixed scrolling issues
This commit is contained in:
Phil Hughes 2016-10-25 13:16:22 +01:00
parent 5f276f353c
commit 079d146278
4 changed files with 5 additions and 4 deletions

View file

@ -29,7 +29,8 @@
issue () {
if (this.showSidebar) {
this.$nextTick(() => {
$(".right-sidebar").getNiceScroll(0).doScrollTop(0, 0);
$('.right-sidebar').getNiceScroll(0).doScrollTop(0, 0);
$('.right-sidebar').getNiceScroll().resize();
});
}
}

View file

@ -42,7 +42,7 @@
altField: "input[name='" + this.fieldName + "']",
onSelect: () => {
if (this.$dropdown.hasClass('js-issue-boards-due-date')) {
gl.issueBoards.BoardsStore.detail.issue.dueDate = $("input[name='" + this.fieldName + "']").val();
gl.issueBoards.BoardsStore.detail.issue.dueDate = $(`input[name='${this.fieldName}']`).val();
this.updateIssueBoardIssue();
} else {
return this.saveDueDate(true);

View file

@ -11,7 +11,7 @@
\-
%a.js-assign-yourself{ href: "#" }
assign yourself
%a.author_link.bold{ href: "",
%a.author_link.bold{ ":href" => "'#{root_url}' + issue.assignee.username",
"v-if" => "issue.assignee" }
%img.avatar.avatar-inline.s32{ ":src" => "issue.assignee.avatar",
width: "32" }

View file

@ -19,7 +19,7 @@
":value" => "label.id" }
.dropdown
%button.dropdown-menu-toggle.js-label-select.js-multiselect.js-issue-board-sidebar{ type: "button",
data: { toggle: "dropdown", field_name: "issue[label_names][]", show_no: "true", show_any: "true", project_id: @project.id, labels: namespace_project_labels_path(@project.namespace, @project, :json) },
data: { toggle: "dropdown", field_name: "issue[label_names][]", show_no: "true", show_any: "true", project_id: @project.id, labels: namespace_project_labels_path(@project.namespace, @project, :json), namespace_path: @project.try(:namespace).try(:path), project_path: @project.try(:path) },
":data-issue-update" => "'#{namespace_project_issues_path(@project.namespace, @project)}/' + issue.id + '.json'" }
%span.dropdown-toggle-text
Label