Skip to content
Snippets Groups Projects
Commit 3531032e authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixed slash commands not loading

Closes #21774
parent 7ac47516
No related branches found
No related tags found
1 merge request!6207Fixed slash commands not loading
- project = @target_project || @project
- noteable_type = @noteable.class if @noteable.present?
 
- if noteable_type
:javascript
GitLab.GfmAutoComplete.dataLoading = false;
:javascript
GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_namespace_project_path(project.namespace, project, type: noteable_type, type_id: params[:id])}"
GitLab.GfmAutoComplete.cachedData = undefined;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment