[SDC-31] add mising script got Comformance fix
[sdc.git] / catalog-ui / src / app / view-models / workspace / conformance-level-modal / conformance-level-modal-view-model.ts
1 'use strict';
2
3 export interface IConformanceLevelModalModelScope {
4     footerButtons:Array<any>;
5     modalInstance:ng.ui.bootstrap.IModalServiceInstance;
6 }
7
8 export class ConformanceLevelModalViewModel {
9
10     static '$inject' = ['$scope', '$uibModalInstance'];
11
12     constructor(private $scope:IConformanceLevelModalModelScope,
13                 private $uibModalInstance:ng.ui.bootstrap.IModalServiceInstance) {
14
15         this.initScope();
16     }
17
18     private initScope = ():void => {
19
20         this.$scope.modalInstance = this.$uibModalInstance;
21
22         this.$scope.footerButtons = [
23             {'name': 'Continue', 'css': 'grey', 'callback': this.$uibModalInstance.close},
24             {'name': 'Reject', 'css': 'blue', 'callback': this.$uibModalInstance.dismiss}
25         ];
26
27     };
28
29 }