Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all 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
5 changes: 3 additions & 2 deletions assets/js/app/core/directives/RawView.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
restrict: 'E',
scope: {
item: '=',
text: '='
text: '=',
enabled: '=',
},
replace: true,
template : '<span class="text-nowrap clickable" data-ng-click="openRawView(item)"><i uib-tooltip="Raw view" class="mdi mdi-eye-outline"></i>{{text ? "&nbsp;&nbsp;" + text : ""}}</span>',
templateUrl: 'js/app/core/directives/partials/RawView.html',
controller: [
'$scope','$uibModal',
function controller($scope,$uibModal) {
Expand Down
4 changes: 4 additions & 0 deletions assets/js/app/core/directives/partials/RawView.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<span class="text-nowrap clickable" data-ng-click="openRawView(item)">
<i uib-tooltip="Raw view" class="mdi {{enabled ? 'mdi-eye-outline' : 'mdi-eye-off-outline' }}"></i>
{{text ? "&nbsp;&nbsp;" + text : ""}}
</span>
14 changes: 13 additions & 1 deletion assets/js/app/services/partials/form-service-013.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,19 @@
<p class="help-block">The service name.</p>
</div>
</div>

<div class="form-group" ng-class="{'has-error' : errors.name}">
<label class="col-sm-4 control-label">Enabled <br><em><small class="help-block">optional</small></em></label>
<div class="col-sm-7">
<input bs-switch
ng-model="service.enabled"
switch-size="small"
type="checkbox"
switch-on-text="YES"
switch-off-text="NO" class="form-control">
<div class="text-danger" ng-if="errors.name" data-ng-bind="errors.name"></div>
<p class="help-block">Whether the service is active. If set to false, the proxy behavior will be as if any routes attached to it do not exist (404).</p>
</div>
</div>
<!-- EXTRAS -->
<div class="form-group">
<label class="col-sm-4 control-label">Description <br><em><small class="help-block">optional</small></em></label>
Expand Down
1 change: 1 addition & 0 deletions assets/js/app/services/services-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
var properties = {
'013': {
name: '',
enabled: true,
host: '',
protocol: '',
port: null,
Expand Down
2 changes: 1 addition & 1 deletion assets/js/app/services/views/services.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<tr
dir-paginate="service in items.data | orderBy:sort.column:sort.direction | filter : filters.searchWord | itemsPerPage: itemsPerPage as filteredItems">
<td>
<raw-view data-item="service"></raw-view>
<raw-view data-enabled="service.enabled" data-item="service"></raw-view>
</td>
<td>
<p class="no-margin">
Expand Down