Commit 14774ea2 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'kp-rename-roadmap-root-scripts' into 'master'

Rename Roadmap app files to be specific for easier debugging

See merge request gitlab-org/gitlab-ee!11053
parents b8e28ffc 63154462
import $ from 'jquery';
import initRoadmap from 'ee/roadmap/index';
import initRoadmap from 'ee/roadmap/roadmap_bundle';
export default class EpicTabs {
constructor() {
......
import initFilteredSearch from '~/pages/search/init_filtered_search';
import FilteredSearchTokenKeysEpics from 'ee/filtered_search/filtered_search_token_keys_epics';
import initEpicCreateApp from 'ee/epic/epic_bundle';
import initRoadmap from 'ee/roadmap/index';
import initRoadmap from 'ee/roadmap/roadmap_bundle';
document.addEventListener('DOMContentLoaded', () => {
initFilteredSearch({
......
......@@ -152,8 +152,10 @@ export default {
// Check if container height is less than total height of all Epic
// items combined (AKA list is scrollable).
const isListVertScrollable =
this.$el.parentElement.offsetHeight < EPIC_ITEM_HEIGHT * (this.epics.length + 1);
const offsetHeight = this.$el.parentElement
? this.$el.parentElement.offsetHeight
: this.$el.offsetHeight;
const isListVertScrollable = offsetHeight < EPIC_ITEM_HEIGHT * (this.epics.length + 1);
// Toggle empty row.
this.showEmptyRow = !isListVertScrollable;
......
......@@ -12,7 +12,7 @@ import { getTimeframeForPreset, getEpicsPathForPreset } from './utils/roadmap_ut
import createStore from './store';
import roadmapApp from './components/app.vue';
import roadmapApp from './components/roadmap_app.vue';
Vue.use(Translate);
......
import Vue from 'vue';
import appComponent from 'ee/roadmap/components/app.vue';
import appComponent from 'ee/roadmap/components/roadmap_app.vue';
import createStore from 'ee/roadmap/store';
import eventHub from 'ee/roadmap/event_hub';
......
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