Skip to content

Commit

Permalink
Removed old translations
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomThomson committed Aug 26, 2020
1 parent 8fd9dbe commit 36e1b54
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 103 deletions.
5 changes: 0 additions & 5 deletions src/plugins/dashboard/public/application/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,3 @@ export {
UnlinkFromLibraryActionContext,
ACTION_UNLINK_FROM_LIBRARY,
} from './unlink_from_library_action';
export {
LibraryNotificationActionContext,
LibraryNotificationAction,
ACTION_LIBRARY_NOTIFICATION,
} from './library_notification_action';

This file was deleted.

17 changes: 5 additions & 12 deletions src/plugins/dashboard/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import {
EmbeddableStart,
SavedObjectEmbeddableInput,
EmbeddableInput,
PANEL_NOTIFICATION_TRIGGER,
} from '../../embeddable/public';
import { DataPublicPluginSetup, DataPublicPluginStart, esFilters } from '../../data/public';
import { SharePluginSetup, SharePluginStart, UrlGeneratorContract } from '../../share/public';
Expand Down Expand Up @@ -84,12 +83,6 @@ import {
ACTION_UNLINK_FROM_LIBRARY,
UnlinkFromLibraryActionContext,
UnlinkFromLibraryAction,
ACTION_ADD_TO_LIBRARY,
AddToLibraryActionContext,
AddToLibraryAction,
ACTION_LIBRARY_NOTIFICATION,
LibraryNotificationActionContext,
LibraryNotificationAction,
} from './application';
import {
createDashboardUrlGenerator,
Expand All @@ -102,6 +95,11 @@ import { addEmbeddableToDashboardUrl } from './url_utils/url_helper';
import { PlaceholderEmbeddableFactory } from './application/embeddable/placeholder';
import { UrlGeneratorState } from '../../share/public';
import { AttributeService } from '.';
import {
AddToLibraryAction,
ACTION_ADD_TO_LIBRARY,
AddToLibraryActionContext,
} from './application/actions/add_to_library_action';

declare module '../../share/public' {
export interface UrlGeneratorStateMapping {
Expand Down Expand Up @@ -164,7 +162,6 @@ declare module '../../../plugins/ui_actions/public' {
[ACTION_CLONE_PANEL]: ClonePanelActionContext;
[ACTION_ADD_TO_LIBRARY]: AddToLibraryActionContext;
[ACTION_UNLINK_FROM_LIBRARY]: UnlinkFromLibraryActionContext;
[ACTION_LIBRARY_NOTIFICATION]: LibraryNotificationActionContext;
}
}

Expand Down Expand Up @@ -440,10 +437,6 @@ export class DashboardPlugin
const unlinkFromLibraryAction = new UnlinkFromLibraryAction();
uiActions.registerAction(unlinkFromLibraryAction);
uiActions.attachAction(CONTEXT_MENU_TRIGGER, unlinkFromLibraryAction.id);

const libraryNotificationAction = new LibraryNotificationAction();
uiActions.registerAction(libraryNotificationAction);
uiActions.attachAction(PANEL_NOTIFICATION_TRIGGER, libraryNotificationAction.id);
}

const savedDashboardLoader = createSavedDashboardLoader({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,8 @@ function renderNotifications(
) {
return notifications.map((notification) => {
const context = { embeddable };
const iconType = notification.getIconType({ ...context, trigger: panelNotificationTrigger });

let badge = iconType ? (
<EuiBadge
data-test-subj={`embeddablePanelNotification-${notification.id}`}
iconType={iconType}
key={notification.id}
style={{ marginTop: '2px', marginRight: '4px' }}
color="hollow"
>
{notification.getDisplayName({ ...context, trigger: panelNotificationTrigger })}
</EuiBadge>
) : (
let badge = (
<EuiNotificationBadge
data-test-subj={`embeddablePanelNotification-${notification.id}`}
key={notification.id}
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -2913,8 +2913,6 @@
"savedObjects.saveDuplicateRejectedDescription": "重複ファイルの保存確認が拒否されました",
"savedObjects.saveModal.cancelButtonLabel": "キャンセル",
"savedObjects.saveModal.descriptionLabel": "説明",
"savedObjects.saveModal.duplicateTitleDescription": "{confirmSaveLabel} をクリックすると {objectType} がこの重複したタイトルで保存されます。",
"savedObjects.saveModal.duplicateTitleLabel": "「{title}」というタイトルの {objectType} が既に存在します",
"savedObjects.saveModal.saveAsNewLabel": "新しい {objectType} として保存",
"savedObjects.saveModal.saveButtonLabel": "保存",
"savedObjects.saveModal.saveTitle": "{objectType} を保存",
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2914,8 +2914,6 @@
"savedObjects.saveDuplicateRejectedDescription": "已拒绝使用重复标题保存确认",
"savedObjects.saveModal.cancelButtonLabel": "取消",
"savedObjects.saveModal.descriptionLabel": "描述",
"savedObjects.saveModal.duplicateTitleDescription": "单击“{confirmSaveLabel}”将会使用此重复标题保存 {objectType}。",
"savedObjects.saveModal.duplicateTitleLabel": "具有标题“{title}”的 {objectType} 已存在",
"savedObjects.saveModal.saveAsNewLabel": "另存为新的 {objectType}",
"savedObjects.saveModal.saveButtonLabel": "保存",
"savedObjects.saveModal.saveTitle": "保存 {objectType}",
Expand Down

0 comments on commit 36e1b54

Please sign in to comment.