Disable publish checkbox for disconnected sources
This commit is contained in:
parent
0951afcbb3
commit
ea887dd8f6
3 changed files with 7 additions and 6 deletions
|
@ -16,7 +16,6 @@ var AIRTIME = (function (AIRTIME) {
|
|||
//AngularJS app
|
||||
var publishApp = angular.module(PUBLISH_APP_NAME, [])
|
||||
.controller('Publish', function ($scope, $http, mediaId, tab) {
|
||||
$scope.publishSources = {};
|
||||
$scope.publishData = {};
|
||||
var sourceInterval;
|
||||
|
||||
|
@ -34,7 +33,7 @@ var AIRTIME = (function (AIRTIME) {
|
|||
.success(function (json) {
|
||||
$scope.sources = { toPublish: [], published: []};
|
||||
$.each(json, function () {
|
||||
if (this.status != 0) {
|
||||
if (Math.abs(this.status) == 1) {
|
||||
$scope.sources.published.push(this);
|
||||
} else {
|
||||
$scope.sources.toPublish.push(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue