aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/app/modules/home/serviceDetails/validation/validationCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/app/modules/home/serviceDetails/validation/validationCtrl.js')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/app/modules/home/serviceDetails/validation/validationCtrl.js95
1 files changed, 95 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/app/modules/home/serviceDetails/validation/validationCtrl.js b/vnfmarket/src/main/webapp/vnfmarket/app/modules/home/serviceDetails/validation/validationCtrl.js
new file mode 100644
index 00000000..978e6aed
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/app/modules/home/serviceDetails/validation/validationCtrl.js
@@ -0,0 +1,95 @@
+/*
+ * Copyright 2017 Huawei Technologies Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+(function() {
+ 'use strict';
+
+ /**
+ * @ngdoc function
+ * @name app.controller:HomeCtrl
+ * @description
+ * # HomeCtrl
+ * Controller of the app
+ */
+
+ angular
+ .module('vnfmarket')
+ .controller('validationCtrl', validation);
+
+ validation.$inject = [ 'vnfConfig', 'baseUrlConfig'];
+
+ /*
+ * recommend
+ * Using function declarations
+ * and bindable members up top.
+ */
+
+ function validation(vnfConfig, baseUrlConfig) {
+ var vm = this;
+ console.log("functionalTest")
+ vm.validations = [];
+ vm.filter = {
+ "search": '',
+ "name": 'step'
+ };
+
+ vm.listViewActions = {
+ "search": ""
+ }
+
+ vm.pagination = [5, 10, 15, {
+ label: 'All',
+ value: function() {
+ return vm.validations.length ? vm.validations.length : 0;
+ }
+ }];
+
+ vm.paginationQuery = {
+ order: "step",
+ limit: 10,
+ page: 1
+ };
+
+ vm.paginationOptions = {
+ rowSelect: false,
+ multiSelect: false,
+ autoSelect: false,
+ autoSelect: false,
+ decapitate: false,
+ largeEditDialog: false,
+ boundaryLink: true,
+ limitSelect: true,
+ pageSelect: true
+ };
+ vm.getValidations = function(){
+ console.log(vm.validations)
+ }
+
+ vm.validations = [{
+ "step" : "Validation step-1",
+ "parameter" : "Validation Parameter1",
+ "result" : "pass"
+ },
+ {
+ "step" : "Validation step-2",
+ "parameter" : "Validation Parameter2",
+ "result" : "pass"
+ },{
+ "step" : "Validation step-3",
+ "parameter" : "Validation Parameter3",
+ "result" : "pass"
+ }];
+ }
+})(); \ No newline at end of file