@@ -27,7 +27,9 @@ import PFCard from "@patternfly/patternfly/components/Card/card.css";
2727import PFDescriptionList from "@patternfly/patternfly/components/DescriptionList/description-list.css" ;
2828import PFPage from "@patternfly/patternfly/components/Page/page.css" ;
2929import PFGrid from "@patternfly/patternfly/layouts/Grid/grid.css" ;
30- import PFBase from "@patternfly/patternfly/patternfly-base.css" ;
30+
31+ const [ FLEET_CONNECTOR_APP_LABEL , FLEET_CONNECTOR_MODEL_NAME ] =
32+ ModelEnum . AuthentikEndpointsConnectorsFleetFleetconnector . split ( "." ) ;
3133
3234@customElement ( "ak-endpoints-connector-fleet-view" )
3335export class FleetConnectorViewPage extends AKElement {
@@ -40,7 +42,7 @@ export class FleetConnectorViewPage extends AKElement {
4042 @state ( )
4143 protected error ?: APIError ;
4244
43- static styles : CSSResult [ ] = [ PFBase , PFCard , PFPage , PFGrid , PFButton , PFDescriptionList ] ;
45+ static styles : CSSResult [ ] = [ PFCard , PFPage , PFGrid , PFButton , PFDescriptionList ] ;
4446
4547 protected fetchDevice ( id : string ) {
4648 new EndpointsApi ( DEFAULT_CONFIG )
@@ -68,9 +70,7 @@ export class FleetConnectorViewPage extends AKElement {
6870 } ) ;
6971 }
7072
71- renderTabOverview ( ) {
72- const [ appLabel , modelName ] =
73- ModelEnum . AuthentikEndpointsConnectorsFleetFleetconnector . split ( "." ) ;
73+ protected renderTabOverview ( ) {
7474 return html `< div
7575 class ="pf-c-page__main-section pf-m-no-padding-mobile pf-l-grid pf-m-gutter "
7676 >
@@ -81,8 +81,8 @@ export class FleetConnectorViewPage extends AKElement {
8181 </ div >
8282 < div class ="pf-c-card__body ">
8383 < ak-schedule-list
84- .relObjAppLabel =${ appLabel }
85- .relObjModel =${ modelName }
84+ .relObjAppLabel =${ FLEET_CONNECTOR_APP_LABEL }
85+ .relObjModel =${ FLEET_CONNECTOR_MODEL_NAME }
8686 .relObjId="${ this . connector ?. connectorUuid } "
8787 > </ ak-schedule-list >
8888 </ div >
@@ -95,8 +95,8 @@ export class FleetConnectorViewPage extends AKElement {
9595 </ div >
9696 < div class ="pf-c-card__body ">
9797 < ak-task-list
98- .relObjAppLabel =${ appLabel }
99- .relObjModel =${ modelName }
98+ .relObjAppLabel =${ FLEET_CONNECTOR_APP_LABEL }
99+ .relObjModel =${ FLEET_CONNECTOR_MODEL_NAME }
100100 .relObjId="${ this . connector ?. connectorUuid } "
101101 > </ ak-task-list >
102102 </ div >
@@ -142,7 +142,7 @@ export class FleetConnectorViewPage extends AKElement {
142142 tabindex ="0 "
143143 slot ="page-permissions "
144144 id ="page-permissions "
145- aria-label =" ${ msg ( "Permissions" ) } "
145+ aria-label =${ msg ( "Permissions" ) }
146146 model =${ RbacPermissionsAssignedByUsersListModelEnum . AuthentikEndpointsConnectorsAgentAgentconnector }
147147 objectPk=${ this . connector . connectorUuid ! }
148148 > </ ak-rbac-object-permission-page >
0 commit comments