From 08fb1fdf8095925224ccd6ecb3fe001a5b5d4aec Mon Sep 17 00:00:00 2001 From: Liza Katz Date: Mon, 18 Mar 2019 18:43:31 +0200 Subject: [PATCH] moved kbn-truncated to notify (#33374) --- src/legacy/ui/public/doc_table/doc_table.js | 1 - src/legacy/ui/public/{ => notify}/directives/truncated.js | 4 ++-- src/legacy/ui/public/notify/notify.js | 2 +- .../ui/public/{directives => notify}/partials/truncated.html | 0 4 files changed, 3 insertions(+), 4 deletions(-) rename src/legacy/ui/public/{ => notify}/directives/truncated.js (95%) rename src/legacy/ui/public/{directives => notify}/partials/truncated.html (100%) diff --git a/src/legacy/ui/public/doc_table/doc_table.js b/src/legacy/ui/public/doc_table/doc_table.js index b7e1532ba841c..05311556869e1 100644 --- a/src/legacy/ui/public/doc_table/doc_table.js +++ b/src/legacy/ui/public/doc_table/doc_table.js @@ -20,7 +20,6 @@ import _ from 'lodash'; import html from './doc_table.html'; import { getSort } from './lib/get_sort'; -import '../directives/truncated'; import '../directives/infinite_scroll'; import './components/table_header'; import './components/table_row'; diff --git a/src/legacy/ui/public/directives/truncated.js b/src/legacy/ui/public/notify/directives/truncated.js similarity index 95% rename from src/legacy/ui/public/directives/truncated.js rename to src/legacy/ui/public/notify/directives/truncated.js index c3b672c8b0f03..b17567a301701 100644 --- a/src/legacy/ui/public/directives/truncated.js +++ b/src/legacy/ui/public/notify/directives/truncated.js @@ -19,8 +19,8 @@ import truncText from 'trunc-text'; import truncHTML from 'trunc-html'; -import { uiModules } from '../modules'; -import truncatedTemplate from './partials/truncated.html'; +import { uiModules } from '../../modules'; +import truncatedTemplate from '../partials/truncated.html'; import 'angular-sanitize'; const module = uiModules.get('kibana', ['ngSanitize']); diff --git a/src/legacy/ui/public/notify/notify.js b/src/legacy/ui/public/notify/notify.js index 4ed43c1fcfc3e..42b6391cb3d6d 100644 --- a/src/legacy/ui/public/notify/notify.js +++ b/src/legacy/ui/public/notify/notify.js @@ -26,7 +26,7 @@ import { banners } from './banners'; import { Notifier } from './notifier'; import template from './partials/toaster.html'; import '../filters/markdown'; -import '../directives/truncated'; +import './directives/truncated'; import { FormattedMessage } from '@kbn/i18n/react'; import { diff --git a/src/legacy/ui/public/directives/partials/truncated.html b/src/legacy/ui/public/notify/partials/truncated.html similarity index 100% rename from src/legacy/ui/public/directives/partials/truncated.html rename to src/legacy/ui/public/notify/partials/truncated.html