mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
# Backport This will backport the following commits from `8.x` to `8.17`: - [[Logs UI] Fix log view loading states (#212124)](https://github.com/elastic/kibana/pull/212124) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Felix Stürmer","email":"weltenwort@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-21T18:49:34Z","message":"[Logs UI] Fix log view loading states (#212124)\n\nThis fixes a problem with the log view resolution when entering the log\nsettings page under certain conditions.","sha":"aa26fe3c0b921c3696dba7023a4fced72c4a2043","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","backport:version","v8.18.0","v8.19.0","v8.17.3"],"title":"[Logs UI] Fix log view loading states","number":212124,"url":"https://github.com/elastic/kibana/pull/212124","mergeCommit":{"message":"[Logs UI] Fix log view loading states (#212124)\n\nThis fixes a problem with the log view resolution when entering the log\nsettings page under certain conditions.","sha":"aa26fe3c0b921c3696dba7023a4fced72c4a2043"}},"sourceBranch":"8.x","suggestedTargetBranches":["8.18","8.17"],"targetPullRequestStates":[{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
f83518d598
commit
43587d848f
2 changed files with 7 additions and 2 deletions
|
@ -117,8 +117,9 @@ export const useLogView = ({
|
|||
const isLoading =
|
||||
isLoadingLogView || isResolvingLogView || isLoadingLogViewStatus || isUpdatingLogView;
|
||||
|
||||
const isUninitialized = useSelector(logViewStateService, (state) =>
|
||||
state.matches('uninitialized')
|
||||
const isUninitialized = useSelector(
|
||||
logViewStateService,
|
||||
(state) => state.matches('uninitialized') || state.matches('initializingFromUrl')
|
||||
);
|
||||
|
||||
const hasFailedLoadingLogView = useSelector(logViewStateService, (state) =>
|
||||
|
|
|
@ -45,6 +45,10 @@ export type LogViewTypestate =
|
|||
value: 'loading';
|
||||
context: LogViewContextWithReference;
|
||||
}
|
||||
| {
|
||||
value: 'initializingFromUrl';
|
||||
context: LogViewContextWithReference;
|
||||
}
|
||||
| {
|
||||
value: 'resolving';
|
||||
context: LogViewContextWithReference & LogViewContextWithLogView;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue