mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Adding remote debug.
For some reason ng-table is loosing the header.
This commit is contained in:
parent
7e7b52de7c
commit
905879235e
9 changed files with 95 additions and 61 deletions
|
@ -3,5 +3,5 @@ require('./external-url-modal.css')
|
|||
module.exports = angular.module('stf.external-url-modal', [
|
||||
require('stf/common-ui/modals/common').name
|
||||
])
|
||||
.factory('ExternalUrlModalService', require('./external-url-modal'))
|
||||
.factory('ExternalUrlModalService', require('./external-url-modal-service'))
|
||||
.directive('onLoadEvent', require('./on-load-event-directive'))
|
||||
|
|
6
res/app/control-panes/advanced/remote-debug/index.js
Normal file
6
res/app/control-panes/advanced/remote-debug/index.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
require('./remote-debug.css')
|
||||
|
||||
module.exports = angular.module('stf.remote-debug', [
|
||||
|
||||
])
|
||||
.controller('RemoteDebugCtrl', require('./remote-debug-controller'))
|
|
@ -0,0 +1,3 @@
|
|||
module.exports = function RemoteDebugCtrl($scope) {
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
describe('RemoteDebugCtrl', function () {
|
||||
|
||||
beforeEach(module('stf.remote-debug'));
|
||||
|
||||
var scope, ctrl;
|
||||
|
||||
beforeEach(inject(function ($rootScope, $controller) {
|
||||
scope = $rootScope.$new();
|
||||
ctrl = $controller('RemoteDebugCtrl', {$scope: scope});
|
||||
}));
|
||||
|
||||
it('should ...', inject(function () {
|
||||
expect(1).toEqual(1);
|
||||
|
||||
}));
|
||||
|
||||
});
|
|
@ -0,0 +1,3 @@
|
|||
.stf-remote-debug {
|
||||
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
.widget-container.fluid-height.stf-remote-debug
|
||||
.heading
|
||||
i.fa
|
||||
span(translate) Remote debug
|
||||
.widget-content.padded
|
||||
div
|
|
@ -28,7 +28,7 @@ module.exports = function DeviceListCtrlDetails($scope, DeviceService, GroupServ
|
|||
// $scope.tableFilter = data
|
||||
// })
|
||||
|
||||
if ($scope.ngTableEnabled) {
|
||||
//if ($scope.ngTableEnabled) {
|
||||
|
||||
$scope.statusFilter = function () {
|
||||
var def = $q.defer()
|
||||
|
@ -78,7 +78,7 @@ module.exports = function DeviceListCtrlDetails($scope, DeviceService, GroupServ
|
|||
$scope.$on('devices.update', function () {
|
||||
$scope.tableParams.reload()
|
||||
})
|
||||
}
|
||||
//}
|
||||
|
||||
if (!$scope.ngTableEnabled) {
|
||||
$scope.tableLimit = 1000
|
||||
|
|
|
@ -85,7 +85,7 @@ div.stf-device-list
|
|||
nothing-to-show(message='{{"No devices connected"|translate}}', icon='fa-sitemap', ng-show='!tracker.devices.length')
|
||||
|
||||
.filtering-buttons
|
||||
span(ng-if='ngTableEnabled')
|
||||
div(ng-show='ngTableEnabled')
|
||||
clear-button(ng-click="clearSorting()")
|
||||
filter-button(ng-model='filterEnabled')
|
||||
.button-spacer.pull-right
|
||||
|
@ -94,7 +94,7 @@ div.stf-device-list
|
|||
i.fa.fa-list-alt
|
||||
span {{"Show All"|translate}}
|
||||
|
||||
span(ng-if='!ngTableEnabled')
|
||||
//span(ng-if='!ngTableEnabled')
|
||||
.btn-group(dropdown).pull-right
|
||||
button.btn.btn-sm.btn-primary-outline.dropdown-toggle
|
||||
i.fa.fa-list-alt
|
||||
|
@ -106,7 +106,7 @@ div.stf-device-list
|
|||
input(type='checkbox', checklist-model='selectedColumns', checklist-value='column')
|
||||
span(ng-bind='column.title | translate')
|
||||
|
||||
div(ng-if='!ngTableEnabled')
|
||||
//div(ng-if='!ngTableEnabled')
|
||||
table.table.table-hover.dataTable
|
||||
thead
|
||||
tr
|
||||
|
@ -121,14 +121,13 @@ div.stf-device-list
|
|||
//table.table.table-hover.dataTable(ng-table='tableParams')
|
||||
thead
|
||||
tr
|
||||
th(ng-repeat='column in $parent.selectedColumns', ng-show='column.visible')
|
||||
th(ng-repeat='column in selectedColumns', ng-show='column.visible')
|
||||
div PEPE
|
||||
tbody
|
||||
tr(ng-repeat='device in $data | limitTo:5', ng-class='{ "device-not-usable": !device.usable }')
|
||||
td(ng-repeat='column in selectedColumns', ng-show='column.visible', sortable='column.field')
|
||||
span {{ device[column.field] }}
|
||||
|
||||
div(ng-if='ngTableEnabled')
|
||||
table.table.table-hover.dataTable(ng-table='tableParams', show-filter='filterEnabled', ng-show='tracker.devices.length').device-list-details
|
||||
tr(ng-repeat='device in $data', ng-class='{ "device-not-usable": !device.usable }')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue