Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
fix(application): Remove parent form
Browse files Browse the repository at this point in the history
  • Loading branch information
brasseld authored and NicolasGeraud committed Oct 25, 2018
1 parent 81e685d commit 516d072
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/management/application/applications.route.ts
Expand Up @@ -20,6 +20,7 @@ import UserService from "../../services/user.service";
import {HookScope} from "../../entities/hookScope";
import NotificationSettingsService from "../../services/notificationSettings.service";
import {StateParams} from '@uirouter/core';
import ApiService from "../../services/api.service";

export default applicationsConfig;

Expand Down Expand Up @@ -125,7 +126,10 @@ function applicationsConfig($stateProvider) {
component: 'applicationSubscriptions',
resolve: {
subscriptions: ($stateParams, ApplicationService: ApplicationService) =>
ApplicationService.listSubscriptions($stateParams.applicationId).then(response => response.data)
ApplicationService.listSubscriptions($stateParams.applicationId).then(response => response.data),

subscribers: ($stateParams, ApplicationService: ApplicationService) =>
ApplicationService.getSubscribedAPI($stateParams.applicationId).then(response => response.data)
},
data: {
menu: {
Expand Down
Expand Up @@ -16,6 +16,7 @@
const ApplicationSubscriptionsComponent: ng.IComponentOptions = {
bindings: {
application: '<',
subscribers: '<',
subscriptions: '<'
},
controller: 'ApplicationSubscriptionsController',
Expand Down
Expand Up @@ -31,6 +31,7 @@ export class SubscriptionQuery {
class ApplicationSubscriptionsController {

private subscriptions: PagedResult;
private subscribers: any[];
private application: any;

private query: SubscriptionQuery = new SubscriptionQuery();
Expand Down
Expand Up @@ -15,8 +15,7 @@
limitations under the License.
-->
<form name="formApplication" ng-submit="$ctrl.update()" novalidate>
<div class="gv-forms gv-forms-fluid" layout="column" permission permission-only="'application-definition-u'">
<div class="gv-forms gv-forms-fluid" layout="column">
<h1>{{$ctrl.application.name}} ({{$ctrl.application.type}})</h1>
<div class="gv-form">
<h2>Subscriptions</h2>
Expand Down Expand Up @@ -100,4 +99,3 @@ <h2>Subscriptions</h2>
</div>
</div>
</div>
</form>

0 comments on commit 516d072

Please sign in to comment.