Added IMSI detail page
diff --git a/mCordPortal/src/app/view/imsi-details/imsi-details.js b/mCordPortal/src/app/view/imsi-details/imsi-details.js
new file mode 100644
index 0000000..0628601
--- /dev/null
+++ b/mCordPortal/src/app/view/imsi-details/imsi-details.js
@@ -0,0 +1,43 @@
+(function () {
+ 'use strict';
+
+ angular.module('mCord')
+ .directive('imsiDetails', function () {
+ return {
+ restrict: 'E',
+ scope: {},
+ controllerAs: 'vm',
+ templateUrl: 'app/view/imsi-details/imsi-details.tpl.html',
+ controller: function($stateParams, _, Imsi){
+
+ Imsi.get({id: $stateParams.id}).$promise
+ .then((imsi) => {
+ this.imsi = imsi;
+ return imsi.getProfiles()
+ })
+ .then(profiles => {
+ this.data = _.reduce(profiles, (list, p) => {
+ list.push([p.DlAllocRBRate, p.UlAllocRBRate]);
+ return list;
+ }, [])
+ });
+
+ this.config = {
+ exclude: ['UeStatus'],
+ formName: 'updateEnode',
+ actions: [
+ {
+ label: 'Update',
+ icon: 'ok',
+ cb: (enode) => {
+ enode.$save();
+ },
+ class: 'primary-border'
+ }
+ ]
+ };
+
+ }
+ }
+ });
+}());
\ No newline at end of file