mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
refactor(app): app events datatable [EE-5355] (#10024)
This commit is contained in:
parent
0eaf296e1b
commit
c472fe9c18
19 changed files with 277 additions and 19 deletions
|
@ -15,6 +15,7 @@ import { withUIRouter } from '@/react-tools/withUIRouter';
|
|||
import {
|
||||
ApplicationSummaryWidget,
|
||||
ApplicationDetailsWidget,
|
||||
ApplicationEventsDatatable,
|
||||
} from '@/react/kubernetes/applications/DetailsView';
|
||||
import { withUserProvider } from '@/react/test-utils/withUserProvider';
|
||||
import { withFormValidation } from '@/react-tools/withFormValidation';
|
||||
|
@ -109,9 +110,21 @@ export const ngModule = angular
|
|||
[]
|
||||
)
|
||||
)
|
||||
.component(
|
||||
'applicationEventsDatatable',
|
||||
r2a(
|
||||
withUIRouter(
|
||||
withReactQuery(withUserProvider(ApplicationEventsDatatable))
|
||||
),
|
||||
[]
|
||||
)
|
||||
)
|
||||
.component(
|
||||
'kubernetesApplicationPlacementsDatatable',
|
||||
r2a(withCurrentUser(PlacementsDatatable), ['dataset', 'onRefresh'])
|
||||
r2a(withUIRouter(withCurrentUser(PlacementsDatatable)), [
|
||||
'dataset',
|
||||
'onRefresh',
|
||||
])
|
||||
);
|
||||
|
||||
export const componentsModule = ngModule.name;
|
||||
|
|
|
@ -56,16 +56,7 @@
|
|||
{{ ctrl.state.eventWarningCount }} warning(s)
|
||||
</div>
|
||||
</uib-tab-heading>
|
||||
<kubernetes-events-datatable
|
||||
title-text="Events"
|
||||
title-icon="history"
|
||||
dataset="ctrl.events"
|
||||
table-key="kubernetes.application.events"
|
||||
order-by="Date"
|
||||
reverse-order="true"
|
||||
loading="ctrl.state.eventsLoading"
|
||||
refresh-callback="ctrl.getEvents"
|
||||
></kubernetes-events-datatable>
|
||||
<application-events-datatable />
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab index="3" ng-if="ctrl.application.Yaml" select="ctrl.showEditor()" classes="btn-sm">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue