1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 22:39:41 +02:00

feat(container): container view overhaul (#150)

This commit is contained in:
Anthony Lapenna 2016-08-19 18:41:45 +12:00 committed by GitHub
parent 4d99c12215
commit faccf2a651
7 changed files with 224 additions and 250 deletions

View file

@ -2,7 +2,6 @@ angular.module('image', [])
.controller('ImageController', ['$scope', '$stateParams', '$state', 'Image', 'Messages',
function ($scope, $stateParams, $state, Image, Messages) {
$scope.RepoTags = [];
$scope.config = {
Image: '',
Registry: ''
@ -20,6 +19,7 @@ function ($scope, $stateParams, $state, Image, Messages) {
});
}
//TODO: centralize createImageConfig (also used in containerController)
function createImageConfig(imageName, registry) {
var imageNameAndTag = imageName.split(':');
var image = imageNameAndTag[0];