Get rid off aggressive polling option and always use inactive status

This commit is contained in:
John Alberts 2018-03-16 15:08:04 -07:00
parent 72831d413b
commit 30200ac219
No known key found for this signature in database
GPG key ID: 1DEF383917D74AA3
13 changed files with 1 additions and 29 deletions

View file

@ -90,11 +90,7 @@ class CouchPotato implements Contracts\Applications, Contracts\Livestats
<li><span class="title">Available</span><sub>'.$availableMovies.'</sub></li> <li><span class="title">Available</span><sub>'.$availableMovies.'</sub></li>
</ul> </ul>
'; ';
$active = 'inactive'; return json_encode(['status' => 'inactive', 'html' => $html]);;
if (isset($this->config->aggressive_polling) && $this->config->aggressive_polling) {
$active = 'active';
}
return json_encode(['status' => $active, 'html' => $html]);;
} }
private function sendRequest() private function sendRequest()

View file

@ -44,7 +44,6 @@ return array (
'apps.username' => 'Benutzername', 'apps.username' => 'Benutzername',
'apps.password' => 'Passwort', 'apps.password' => 'Passwort',
'apps.config' => 'Konfig', 'apps.config' => 'Konfig',
'apps.aggressive_polling' => 'Aggressives Polling',
'url' => 'Url', 'url' => 'Url',
'title' => 'Titel', 'title' => 'Titel',
'delete' => 'Löschen', 'delete' => 'Löschen',

View file

@ -66,7 +66,6 @@ return [
'apps.tag_name' => 'Tag name', 'apps.tag_name' => 'Tag name',
'apps.tags' => 'Tags', 'apps.tags' => 'Tags',
'apps.override' => 'If different to main url', 'apps.override' => 'If different to main url',
'apps.aggressive_polling' => 'Aggressive polling',
'url' => 'Url', 'url' => 'Url',
'title' => 'Title', 'title' => 'Title',

View file

@ -44,7 +44,6 @@ return array (
'apps.username' => 'Nombre de usuario', 'apps.username' => 'Nombre de usuario',
'apps.password' => 'Contraseña', 'apps.password' => 'Contraseña',
'apps.config' => 'Config', 'apps.config' => 'Config',
'apps.aggressive_polling' => 'Encuesta agresiva',
'url' => 'Url', 'url' => 'Url',
'title' => 'Título', 'title' => 'Título',
'delete' => 'Borrar', 'delete' => 'Borrar',

View file

@ -44,7 +44,6 @@ return array (
'apps.username' => 'Käyttäjätunnus', 'apps.username' => 'Käyttäjätunnus',
'apps.password' => 'Salasana', 'apps.password' => 'Salasana',
'apps.config' => 'Konfiguraatio', 'apps.config' => 'Konfiguraatio',
'apps.aggressive_polling' => 'Agressieve polling',
'url' => 'Url', 'url' => 'Url',
'title' => 'Otsikko', 'title' => 'Otsikko',
'delete' => 'Poistaa', 'delete' => 'Poistaa',

View file

@ -44,7 +44,6 @@ return array (
'apps.username' => 'Nom d\'utilisateur', 'apps.username' => 'Nom d\'utilisateur',
'apps.password' => 'Mot de passe', 'apps.password' => 'Mot de passe',
'apps.config' => 'Config', 'apps.config' => 'Config',
'apps.aggressive_polling' => 'Scrutation agressive',
'url' => 'Url', 'url' => 'Url',
'title' => 'Titre', 'title' => 'Titre',
'delete' => 'Effacer', 'delete' => 'Effacer',

View file

@ -61,7 +61,6 @@ return [
'apps.config' => 'Configurazione', 'apps.config' => 'Configurazione',
'apps.apikey' => 'Api Key', 'apps.apikey' => 'Api Key',
'apps.enable' => 'Abilitato', 'apps.enable' => 'Abilitato',
'apps.aggressive_polling' => 'Sondaggio aggressivo',
'url' => 'Url', 'url' => 'Url',
'title' => 'Titolo', 'title' => 'Titolo',

View file

@ -65,7 +65,6 @@ return [
'apps.add_tag' => 'Tag toevoegen', 'apps.add_tag' => 'Tag toevoegen',
'apps.tag_name' => 'Naam van tag', 'apps.tag_name' => 'Naam van tag',
'apps.tags' => 'Tags', 'apps.tags' => 'Tags',
'apps.aggressive_polling' => 'Agressieve polling',
'url' => 'URL', 'url' => 'URL',
'title' => 'Titel', 'title' => 'Titel',

View file

@ -61,7 +61,6 @@ return [
'apps.config' => 'Konfigurasjon', 'apps.config' => 'Konfigurasjon',
'apps.apikey' => 'Api nøkkel', 'apps.apikey' => 'Api nøkkel',
'apps.enable' => 'Aktiver', 'apps.enable' => 'Aktiver',
'apps.aggressive_polling' => 'Aggressiv avstemning',
'url' => 'Url', 'url' => 'Url',
'title' => 'Tittel', 'title' => 'Tittel',

View file

@ -61,7 +61,6 @@ return [
'apps.config' => 'Ustawienia', 'apps.config' => 'Ustawienia',
'apps.apikey' => 'Klucz API', 'apps.apikey' => 'Klucz API',
'apps.enable' => 'Włącz', 'apps.enable' => 'Włącz',
'apps.aggressive_polling' => 'Agresywny głosowanie',
'url' => 'URL', 'url' => 'URL',
'title' => 'Tytuł', 'title' => 'Tytuł',

View file

@ -44,7 +44,6 @@ return array (
'apps.username' => 'Användarnamn', 'apps.username' => 'Användarnamn',
'apps.password' => 'Lösenord', 'apps.password' => 'Lösenord',
'apps.config' => 'Konfiguration', 'apps.config' => 'Konfiguration',
'apps.aggressive_polling' => 'Aggressiv omröstning',
'url' => 'Url', 'url' => 'Url',
'title' => 'Titel', 'title' => 'Titel',
'delete' => 'Radera', 'delete' => 'Radera',

View file

@ -59,7 +59,6 @@ return [
'apps.username' => 'Kullanıcı adı', 'apps.username' => 'Kullanıcı adı',
'apps.password' => 'Şifre', 'apps.password' => 'Şifre',
'apps.config' => 'Yapılandırma', 'apps.config' => 'Yapılandırma',
'apps.aggressive_polling' => 'Agresif oy verme',
'url' => 'Adres', 'url' => 'Adres',
'title' => 'Başlık', 'title' => 'Başlık',

View file

@ -2,19 +2,6 @@
<div class="items"> <div class="items">
<input type="hidden" name="config[enabled]" value="1" /> <input type="hidden" name="config[enabled]" value="1" />
<input type="hidden" data-config="type" class="config-item" name="config[type]" value="\App\SupportedApps\CouchPotato" /> <input type="hidden" data-config="type" class="config-item" name="config[type]" value="\App\SupportedApps\CouchPotato" />
<div class="input">
<label>{{ __('app.apps.aggressive_polling') }}</label>
{!! Form::hidden('config[aggressive_polling', '0') !!}
<label class="switch">
<?php
$checked = false;
if(isset($item->config->aggressive_polling) && (bool)$item->config->aggressive_polling === true) $checked = true;
$set_checked = ($checked) ? ' checked="checked"' : '';
?>
<input type="checkbox" name="config[aggressive_polling]" value="1"<?php echo $set_checked;?> />
<span class="slider round"></span>
</label>
</div>
<div class="input"> <div class="input">
<label>{{ __('app.apps.apikey') }}</label> <label>{{ __('app.apps.apikey') }}</label>
{!! Form::text('config[apikey]', null, array('placeholder' => __('app.apps.apikey'), 'data-config' => 'apikey', 'class' => 'form-control config-item')) !!} {!! Form::text('config[apikey]', null, array('placeholder' => __('app.apps.apikey'), 'data-config' => 'apikey', 'class' => 'form-control config-item')) !!}