File tree Expand file tree Collapse file tree 5 files changed +15
-5
lines changed Expand file tree Collapse file tree 5 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -179,13 +179,13 @@ const WebUISider: React.FC<WebUISiderProps> = (props) => {
179179 key : 'job' ,
180180 group : 'workload' ,
181181 } ,
182- {
182+ ! baiClient . supports ( 'deployment' ) && {
183183 label : < WebUILink to = "/serving" > { t ( 'webui.menu.Serving' ) } </ WebUILink > ,
184184 icon : < BAIEndpointsIcon style = { { color : token . colorPrimary } } /> ,
185185 key : 'serving' ,
186186 group : 'service' ,
187187 } ,
188- {
188+ baiClient . supports ( 'deployment' ) && {
189189 label : (
190190 < WebUILink to = "/deployment" > { t ( 'webui.menu.Deployment' ) } </ WebUILink >
191191 ) ,
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ const DeploymentDetailPage: React.FC = () => {
8989 const { deployment } = useLazyLoadQuery < DeploymentDetailPageQuery > (
9090 graphql `
9191 query DeploymentDetailPageQuery($deploymentId: ID!) {
92- deployment(id: $deploymentId) {
92+ deployment(id: $deploymentId) @since(version: "25.13.0") {
9393 id @required(action: THROW)
9494 metadata {
9595 name
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ const DeploymentListPage: React.FC = () => {
5353 const deployments = useLazyLoadQuery < DeploymentListPageQuery > (
5454 graphql `
5555 query DeploymentListPageQuery($filter: DeploymentFilter, $first: Int) {
56- deployments(filter: $filter, first: $first) {
56+ deployments(filter: $filter, first: $first) @since(version: "25.13.0") {
5757 edges {
5858 node {
5959 id
Original file line number Diff line number Diff line change @@ -138,7 +138,6 @@ export default class BackendAIWebUI extends connect(store)(LitElement) {
138138 @property ( { type : Number } ) minibarWidth = 88 ;
139139 @property ( { type : Number } ) sidebarWidth = 250 ;
140140 @property ( { type : Number } ) sidepanelWidth = 250 ;
141- @property ( { type : Object } ) supports = Object ( ) ;
142141 @property ( { type : Array } ) availablePages = [
143142 'start' ,
144143 'dashboard' ,
@@ -625,6 +624,14 @@ export default class BackendAIWebUI extends connect(store)(LitElement) {
625624 page : 'agent-summary' ,
626625 available : ! this . isHideAgents ,
627626 } ,
627+ {
628+ page : 'serving' ,
629+ available : ! globalThis . backendaiclient . supports ( 'deployment' ) ,
630+ } ,
631+ {
632+ page : 'deployment' ,
633+ available : ! ! globalThis . backendaiclient . supports ( 'deployment' ) ,
634+ } ,
628635 ] ;
629636
630637 if ( this . _page === 'start' ) {
Original file line number Diff line number Diff line change @@ -804,6 +804,9 @@ class Client {
804804 if ( this . isManagerVersionCompatibleWith ( '25.12.0' ) ) {
805805 this . _features [ 'mount-by-id' ] = true ;
806806 }
807+ if ( this . isManagerVersionCompatibleWith ( '25.13.0' ) ) {
808+ this . _features [ 'deployment' ] = true ;
809+ }
807810 }
808811
809812 /**
You can’t perform that action at this time.
0 commit comments