[7.12] [Logs UI] Add default panel title to log stream embeddable (#91817) (#92370)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Alejandro Fernández Gómez 2021-02-23 13:35:54 +01:00 committed by GitHub
parent a26f507b3c
commit b5442f2cab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@
*/
import { StartServicesAccessor } from 'kibana/public';
import { i18n } from '@kbn/i18n';
import {
EmbeddableFactoryDefinition,
IContainer,
@ -34,6 +35,16 @@ export class LogStreamEmbeddableFactoryDefinition
}
public getDisplayName() {
return 'Log stream';
return i18n.translate('xpack.infra.logStreamEmbeddable.displayName', {
defaultMessage: 'Log stream',
});
}
public async getExplicitInput() {
return {
title: i18n.translate('xpack.infra.logStreamEmbeddable.title', {
defaultMessage: 'Log stream',
}),
};
}
}