Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilshat Aliev committed Mar 12, 2019
1 parent 4687bce commit ed056bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function ContainerViewCtrl($scope, $rootScope, environmentService, SweetAlert, D
vm.rollbackSnapshot = rollbackSnapshot;
vm.removeSnapshot = removeSnapshot;
vm.addSnapshot = addSnapshot;
vm.trimPrefix = trimPrefix;
vm.isAdmin = isAdmin;

environmentService.getContainersType().success(function (data) {
Expand Down Expand Up @@ -492,6 +493,10 @@ function ContainerViewCtrl($scope, $rootScope, environmentService, SweetAlert, D
});
}

function trimPrefix(label){
return label.replace(/^(env-)/i,"");
}


var timeout;
vm.uploadPercent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<td>Remove</td>
</tr>
<tr ng-repeat="(idx, snapshot) in containerViewCtrl.snapshots">
<td>{{ snapshot.label }}</td>
<td>{{ containerViewCtrl.trimPrefix(snapshot.label); }}</td>
<td>{{ snapshot.createdTime }}</td>
<td>
<a href
Expand Down

0 comments on commit ed056bd

Please sign in to comment.