Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ft: adding async pending option to channel #616

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/scripts/controllers/channel-tabs/basicInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export function channelBasicInfoCtrl ($scope, $timeout, $interval, Api, Notify,
$scope.channel.type = 'http'
$scope.channel.authType = 'private'
$scope.channel.status = 'enabled'
$scope.channel.isAsynchronousProcess = false
}

$scope.$on('$destroy', function () {
Expand Down
8 changes: 8 additions & 0 deletions app/views/partials/channels-tab-basic-info.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@
</div>
</div>

<div class="form-group-2columns">
<label style="display: block;">Is Asynchronous Process</label>
<div class="btn-group" style="margin-bottom: 10px">
<label class="btn btn-primary" ng-model="channel.isAsynchronousProcess" uib-btn-radio="true">True</label>
<label class="btn btn-primary" ng-model="channel.isAsynchronousProcess" uib-btn-radio="false">False</label>
brett-onions marked this conversation as resolved.
Show resolved Hide resolved
</div>
</div>

<div style="border-top: 1px solid #eee;">
<div class="form-group" style="width: 45%" ng-class="{ 'has-error' : ngError.timeout }">
<label style="display: block;">
Expand Down
1 change: 1 addition & 0 deletions app/views/transactionDetails.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ <h2>
<span ng-if="transactionDetails.status === 'Successful'" class="label label-success">Successful</span>
<span ng-if="transactionDetails.status === 'Completed'" class="label label-completed">Completed</span>
<span ng-if="transactionDetails.status === 'Processing'" class="label label-info">Processing</span>
<span ng-if="transactionDetails.status === 'Pending Async'" class="label label-info">Pending Async</span>
<span ng-if="transactionDetails.status === 'Completed with error(s)'" class="label label-completed-with-errors">Completed with error(s)</span>
<span ng-if="transactionDetails.status === 'Failed'" class="label label-danger">Failed</span>
</div>
Expand Down
1 change: 1 addition & 0 deletions app/views/transactions.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ <h3 style="margin: 20px;">
<span ng-if="transaction.status === 'Successful'" class="label label-success">Successful</span>
<span ng-if="transaction.status === 'Completed'" class="label label-completed">Completed</span>
<span ng-if="transaction.status === 'Processing'" class="label label-info">Processing</span>
<span ng-if="transaction.status === 'Pending Async'" class="label label-info">Pending Async</span>
<span ng-if="transaction.status === 'Completed with error(s)'" class="label label-completed-with-errors">Completed with error(s)</span>
<span ng-if="transaction.status === 'Failed'" class="label label-danger">Failed</span>
</td>
Expand Down