Merge branch 'next-minor' into develop
This commit is contained in:
commit
5f00b4a4e6
8 changed files with 12 additions and 9 deletions
|
|
@ -47,6 +47,7 @@ Although the chat was never enabled per default and was marked as experimental,
|
|||
* Bump mimemagic [#8231](https://github.com/diaspora/diaspora/pull/8231)
|
||||
* Removed support for defunct Uni Heidelberg OSM tile server, Mapbox is now required if you want to show maps [#8215](https://github.com/diaspora/diaspora/pull/8215)
|
||||
* Render only two fractional digits in the posts per user/day admin statistics [#8227](https://github.com/diaspora/diaspora/pull/8227)
|
||||
* Make aspect dropdowns scrollable [#8213](https://github.com/diaspora/diaspora/pull/8213)
|
||||
|
||||
## Features
|
||||
* Support and recommend TOML as configuration format [#8132](https://github.com/diaspora/diaspora/pull/8132)
|
||||
|
|
|
|||
|
|
@ -16,10 +16,8 @@ app.views.AspectMembership = app.views.Base.extend({
|
|||
},
|
||||
|
||||
events: {
|
||||
"click ul.aspect_membership.dropdown-menu > li.aspect_selector"
|
||||
: "_clickHandler",
|
||||
"keypress ul.aspect_membership.dropdown-menu > li.aspect_selector"
|
||||
: "_clickHandler"
|
||||
"click ul.aspect-membership.dropdown-menu > li.aspect_selector": "_clickHandler",
|
||||
"keypress ul.aspect-membership.dropdown-menu > li.aspect_selector": "_clickHandler"
|
||||
},
|
||||
|
||||
initialize: function(opts) {
|
||||
|
|
|
|||
|
|
@ -21,3 +21,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
.aspect-membership {
|
||||
max-height: 300px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<span class="caret" />
|
||||
</button>
|
||||
|
||||
<ul class="dropdown-menu aspect_membership pull-right" unselectable="on">
|
||||
<ul class="dropdown-menu aspect-membership pull-right" unselectable="on">
|
||||
{{#each aspects}}
|
||||
<li
|
||||
{{#if membership}}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<li class="hoverable">
|
||||
<a class="selectable toggle_selector" href="#">
|
||||
<a class="selectable toggle_selector aspect-membership" href="#">
|
||||
{{ t "aspect_navigation.select_all" }}
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
- else
|
||||
= t("shared.aspect_dropdown.toggle", count: selected_aspects.size)
|
||||
%span.caret
|
||||
%ul.dropdown-menu.pull-right{unSelectable: "on"}
|
||||
%ul.dropdown-menu.aspect-membership.pull-right{unSelectable: "on"}
|
||||
|
||||
%li.public.radio{"data-aspect_id" => "public", :class => ("selected" if public_selected?(selected_aspects))}
|
||||
%a
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ describe NotificationsController, type: :controller do
|
|||
it "should not provide a contacts menu for standard notifications" do
|
||||
FactoryBot.create(:notification, recipient: alice, target: @post)
|
||||
get :index, params: {per_page: 5}
|
||||
expect(Nokogiri(response.body).css(".aspect_membership")).to be_empty
|
||||
expect(Nokogiri(response.body).css(".aspect-membership")).to be_empty
|
||||
end
|
||||
|
||||
it "should provide a contacts menu for start sharing notifications" do
|
||||
|
|
|
|||
|
|
@ -10,6 +10,6 @@ describe("app.pages.GettingStarted", function() {
|
|||
|
||||
it("renders aspect membership dropdown", function() {
|
||||
this.view.render();
|
||||
expect($("ul.dropdown-menu.aspect_membership").length).toEqual(1);
|
||||
expect($("ul.dropdown-menu.aspect-membership").length).toEqual(1);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue