Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/issuable_suggestions/index.js')
-rw-r--r--app/assets/javascripts/issuable_suggestions/index.js38
1 files changed, 0 insertions, 38 deletions
diff --git a/app/assets/javascripts/issuable_suggestions/index.js b/app/assets/javascripts/issuable_suggestions/index.js
deleted file mode 100644
index 8f7f317d6b4..00000000000
--- a/app/assets/javascripts/issuable_suggestions/index.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import Vue from 'vue';
-import VueApollo from 'vue-apollo';
-import createDefaultClient from '~/lib/graphql';
-import App from './components/app.vue';
-
-Vue.use(VueApollo);
-
-export default function initIssuableSuggestions() {
- const el = document.getElementById('js-suggestions');
- const issueTitle = document.getElementById('issue_title');
- const { projectPath } = el.dataset;
- const apolloProvider = new VueApollo({
- defaultClient: createDefaultClient(),
- });
-
- return new Vue({
- el,
- apolloProvider,
- data() {
- return {
- search: issueTitle.value,
- };
- },
- mounted() {
- issueTitle.addEventListener('input', () => {
- this.search = issueTitle.value;
- });
- },
- render(h) {
- return h(App, {
- props: {
- projectPath,
- search: this.search,
- },
- });
- },
- });
-}