fix(app): fix invalid state name (#2330)

* fix(app): fix invalid state name

* fix(app): update ui-sref
pull/2335/head
Anthony Lapenna 2018-10-04 13:28:39 +13:00 committed by GitHub
parent f6d9a4c7c1
commit 3422662191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -287,8 +287,8 @@ angular.module('portainer.app', [])
};
var stackCreation = {
name: 'portainer.stacks.new',
url: '/new',
name: 'portainer.newstack',
url: '/newstack',
views: {
'content@': {
templateUrl: 'app/portainer/views/stacks/create/createstack.html',

View File

@ -11,7 +11,7 @@
ng-disabled="$ctrl.state.selectedItemCount === 0" ng-click="$ctrl.removeAction($ctrl.state.selectedItems)">
<i class="fa fa-trash-alt space-right" aria-hidden="true"></i>Remove
</button>
<button type="button" class="btn btn-sm btn-primary" ui-sref="portainer.stacks.new">
<button type="button" class="btn btn-sm btn-primary" ui-sref="portainer.newstack">
<i class="fa fa-plus space-right" aria-hidden="true"></i>Add stack
</button>
</div>