Fix scroll problems and disable authorized_only filter
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
7b792af872
commit
97d7c06f78
4 changed files with 15 additions and 10 deletions
|
@ -4,10 +4,6 @@ html {
|
|||
&.touch .tooltip { display: none !important; }
|
||||
}
|
||||
|
||||
body {
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding-top: 0;
|
||||
z-index: 5;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
}
|
||||
|
||||
.sidebar-wrapper {
|
||||
z-index: 1000;
|
||||
overflow-y: auto;
|
||||
background: #F5F5F5;
|
||||
}
|
||||
|
|
|
@ -252,7 +252,11 @@ class ApplicationController < ActionController::Base
|
|||
elsif @group
|
||||
@filter_params[:group_id] = @group.id
|
||||
else
|
||||
@filter_params[:authorized_only] = true
|
||||
# TODO: this filter ignore issues/mr created in public or
|
||||
# internal repos where you are not a member. Enable this filter
|
||||
# or improve current implementation to filter only issues you
|
||||
# created or assigned or mentioned
|
||||
#@filter_params[:authorized_only] = true
|
||||
|
||||
unless @filter_params[:assignee_id]
|
||||
@filter_params[:assignee_id] = current_user.id
|
||||
|
|
|
@ -39,14 +39,20 @@ class Spinach::Features::DashboardMergeRequests < Spinach::FeatureSteps
|
|||
end
|
||||
|
||||
step 'I click "Authored by me" link' do
|
||||
within ".scope-filter" do
|
||||
click_link 'Created by me'
|
||||
within ".assignee-filter" do
|
||||
click_link "Any"
|
||||
end
|
||||
within ".author-filter" do
|
||||
click_link current_user.name
|
||||
end
|
||||
end
|
||||
|
||||
step 'I click "All" link' do
|
||||
within ".scope-filter" do
|
||||
click_link "Everyone's"
|
||||
within ".author-filter" do
|
||||
click_link "Any"
|
||||
end
|
||||
within ".assignee-filter" do
|
||||
click_link "Any"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue