aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/view-models/workspace/conformance-level-modal/conformance-level-modal-view-model.ts
blob: 61a83c88f7ac2c0337a98e9a414e4fbe3fdb722b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
'use strict';

export interface IConformanceLevelModalModelScope {
    footerButtons:Array<any>;
    modalInstance:ng.ui.bootstrap.IModalServiceInstance;
}

export class ConformanceLevelModalViewModel {

    static '$inject' = ['$scope', '$uibModalInstance'];

    constructor(private $scope:IConformanceLevelModalModelScope,
                private $uibModalInstance:ng.ui.bootstrap.IModalServiceInstance) {

        this.initScope();
    }

    private initScope = ():void => {

        this.$scope.modalInstance = this.$uibModalInstance;

        this.$scope.footerButtons = [
            {'name': 'Continue', 'css': 'grey', 'callback': this.$uibModalInstance.close},
            {'name': 'Reject', 'css': 'blue', 'callback': this.$uibModalInstance.dismiss}
        ];

    };

}