Commit cb2287df authored by Fatih Acet's avatar Fatih Acet

Notes bundle for the issue discussions refactor.

parent f7344338
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
document.addEventListener('DOMContentLoaded', () => {
// instantiate Vue here...
});
......@@ -3,5 +3,10 @@
= link_to 'Reopen issue', issue_path(@issue, issue: {state_event: :reopen}, format: 'json'), data: {original_text: "Reopen issue", alternative_text: "Comment & reopen issue"}, class: "btn btn-nr btn-reopen btn-comment js-note-target-reopen #{issue_button_visibility(@issue, false)}", title: 'Reopen issue'
= link_to 'Close issue', issue_path(@issue, issue: {state_event: :close}, format: 'json'), data: {original_text: "Close issue", alternative_text: "Comment & close issue"}, class: "btn btn-nr btn-close btn-comment js-note-target-close #{issue_button_visibility(@issue, true)}", title: 'Close issue'
#js-notes
- content_for :page_specific_javascripts do
= webpack_bundle_tag 'common_vue'
= webpack_bundle_tag 'notes'
#notes
= render 'shared/notes/notes_with_form', :autocomplete => true
......@@ -51,6 +51,7 @@ var config = {
monitoring: './monitoring/monitoring_bundle.js',
network: './network/network_bundle.js',
notebook_viewer: './blob/notebook_viewer.js',
notes: './notes/index.js',
pdf_viewer: './blob/pdf_viewer.js',
pipelines: './pipelines/pipelines_bundle.js',
pipelines_details: './pipelines/pipeline_details_bundle.js',
......@@ -166,6 +167,7 @@ var config = {
'merge_conflicts',
'monitoring',
'notebook_viewer',
'notes',
'pdf_viewer',
'pipelines',
'pipelines_details',
......
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