Skip to content
Snippets Groups Projects
Commit 9cd5e0fc authored by Jacob Schatz's avatar Jacob Schatz
Browse files

Merge branch 'subscribe-button-fix' into 'master'

Removed references to subscribe-button CSS class

These were being blocked by adblocks

Closes #15043

See merge request !3677
parents 95a867e0 a2931a39
No related branches found
No related tags found
1 merge request!3677Removed references to subscribe-button CSS class
Pipeline #
Loading
Loading
@@ -2,7 +2,7 @@ class @Subscription
constructor: (container) ->
$container = $(container)
@url = $container.attr('data-url')
@subscribe_button = $container.find('.subscribe-button')
@subscribe_button = $container.find('.js-subscribe-button')
@subscription_status = $container.find('.subscription-status')
@subscribe_button.unbind('click').click(@toggleSubscription)
 
Loading
Loading
Loading
Loading
@@ -173,12 +173,6 @@
}
}
 
.subscribe-button {
span {
margin-top: 0;
}
}
&.right-sidebar-collapsed {
/* Extra small devices (phones, less than 768px) */
display: none;
Loading
Loading
Loading
Loading
@@ -117,7 +117,7 @@
padding: 6px;
color: $gl-text-color;
 
&.subscribe-button {
&.label-subscribe-button {
padding-left: 0;
}
}
Loading
Loading
Loading
Loading
@@ -14,7 +14,7 @@
.label-subscription{data: {url: toggle_subscription_namespace_project_label_path(@project.namespace, @project, label)}}
.subscription-status{data: {status: label_subscription_status(label)}}
 
%a.subscribe-button.btn.action-buttons{data: {toggle: "tooltip"}}
%button.js-subscribe-button.label-subscribe-button.btn.action-buttons{ type: "button", data: { toggle: "tooltip" } }
%span= label_subscription_toggle_button_text(label)
 
- if can? current_user, :admin_label, @project
Loading
Loading
Loading
Loading
@@ -128,7 +128,7 @@
.title.hide-collapsed
Notifications
- subscribtion_status = subscribed ? 'subscribed' : 'unsubscribed'
%button.btn.btn-block.btn-gray.subscribe-button.hide-collapsed{:type => 'button'}
%button.btn.btn-block.btn-gray.js-subscribe-button.issuable-subscribe-button.hide-collapsed{ type: "button" }
%span= subscribed ? 'Unsubscribe' : 'Subscribe'
.subscription-status.hide-collapsed{data: {status: subscribtion_status}}
.unsubscribed{class: ( 'hidden' if subscribed )}
Loading
Loading
Loading
Loading
@@ -20,11 +20,11 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
end
 
step 'I should see that I am subscribed' do
expect(find('.subscribe-button span')).to have_content 'Unsubscribe'
expect(find('.issuable-subscribe-button span')).to have_content 'Unsubscribe'
end
 
step 'I should see that I am unsubscribed' do
expect(find('.subscribe-button span')).to have_content 'Subscribe'
expect(find('.issuable-subscribe-button span')).to have_content 'Subscribe'
end
 
step 'I click link "Closed"' do
Loading
Loading
Loading
Loading
@@ -29,6 +29,6 @@ class Spinach::Features::Labels < Spinach::FeatureSteps
private
 
def subscribe_button
first('.subscribe-button span')
first('.label-subscribe-button span')
end
end
Loading
Loading
@@ -77,11 +77,11 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
 
step 'I should see that I am subscribed' do
expect(find('.subscribe-button span')).to have_content 'Unsubscribe'
expect(find('.issuable-subscribe-button span')).to have_content 'Unsubscribe'
end
 
step 'I should see that I am unsubscribed' do
expect(find('.subscribe-button span')).to have_content 'Subscribe'
expect(find('.issuable-subscribe-button span')).to have_content 'Subscribe'
end
 
step 'I click button "Unsubscribe"' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment