Commit 3cc7f46a authored by Jose Ivan Vargas's avatar Jose Ivan Vargas Committed by Rémy Coutable

Fix linters

parent 2feec65a
...@@ -51,14 +51,12 @@ import ProjectSelectComboButton from './project_select_combo_button'; ...@@ -51,14 +51,12 @@ import ProjectSelectComboButton from './project_select_combo_button';
}); });
$('.ajax-project-select').each(function (i, select) { $('.ajax-project-select').each(function (i, select) {
var placeholder; var placeholder;
var idAttribute;
this.groupId = $(select).data('group-id'); this.groupId = $(select).data('group-id');
this.includeGroups = $(select).data('include-groups'); this.includeGroups = $(select).data('include-groups');
this.allProjects = $(select).data('allprojects') || false; this.allProjects = $(select).data('allprojects') || false;
this.orderBy = $(select).data('order-by') || 'id'; this.orderBy = $(select).data('order-by') || 'id';
this.withIssuesEnabled = $(select).data('with-issues-enabled'); this.withIssuesEnabled = $(select).data('with-issues-enabled');
this.withMergeRequestsEnabled = $(select).data('with-merge-requests-enabled'); this.withMergeRequestsEnabled = $(select).data('with-merge-requests-enabled');
idAttribute = $(select).data('idattribute') || 'web_url';
placeholder = "Search for project"; placeholder = "Search for project";
if (this.includeGroups) { if (this.includeGroups) {
......
...@@ -33,9 +33,6 @@ export default { ...@@ -33,9 +33,6 @@ export default {
}); });
}, },
}, },
components: {
statusIcon,
},
template: ` template: `
<div class="mr-widget-body media"> <div class="mr-widget-body media">
<status-icon status="failed" :showDisabledButton="Boolean(mr.removeWIPPath)" /> <status-icon status="failed" :showDisabledButton="Boolean(mr.removeWIPPath)" />
......
...@@ -169,18 +169,6 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController ...@@ -169,18 +169,6 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
redirect_to new_user_session_path redirect_to new_user_session_path
end end
def fail_login
error_message = @user.errors.full_messages.to_sentence
return redirect_to omniauth_error_path(oauth['provider'], error: error_message)
end
def fail_ldap_login
flash[:alert] = 'Access denied for your LDAP account.'
redirect_to new_user_session_path
end
def log_audit_event(user, options = {}) def log_audit_event(user, options = {})
AuditEventService.new(user, user, options) AuditEventService.new(user, user, options)
.for_authentication.security_event .for_authentication.security_event
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment