mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Warning if version of Devfile is different from 2.2.0 (#7065)
* Warning if version of Devfile is different from 2.2.0 * Fix unit tests
This commit is contained in:
1
ui/src/app/api-gen/model/devfileContent.ts
generated
1
ui/src/app/api-gen/model/devfileContent.ts
generated
@@ -20,6 +20,7 @@ import { Image } from './image';
|
||||
|
||||
export interface DevfileContent {
|
||||
content: string;
|
||||
version: string;
|
||||
commands: Array<Command>;
|
||||
containers: Array<Container>;
|
||||
images: Array<Image>;
|
||||
|
||||
@@ -84,6 +84,10 @@ export class AppComponent implements OnInit {
|
||||
console.log(error);
|
||||
}
|
||||
});
|
||||
|
||||
if (newContent.version != "2.2.0") {
|
||||
this.snackbar.open("The version of the Devfile is "+newContent.version+".\nOnly version 2.2.0 is supported", "ok")
|
||||
}
|
||||
});
|
||||
|
||||
this.sse.subscribeTo(['DevfileUpdated']).subscribe(event => {
|
||||
|
||||
Reference in New Issue
Block a user