Selaa lähdekoodia

add plex machine and token to homepage
fix modal for plex machine in settings

CauseFX 5 vuotta sitten
vanhempi
commit
cae0349857
2 muutettua tiedostoa jossa 21 lisäystä ja 2 poistoa
  1. 1 1
      api/classes/organizr.class.php
  2. 20 1
      api/homepage/plex.php

+ 1 - 1
api/classes/organizr.class.php

@@ -1717,7 +1717,7 @@ class Organizr
 					'class' => 'getPlexMachineAuth plexAuth switchAuth',
 					'icon' => 'fa fa-id-badge',
 					'text' => 'Retrieve',
-					'attr' => 'onclick="showPlexTokenForm(\'#settings-main-form [name=plexID]\')"'
+					'attr' => 'onclick="showPlexMachineForm(\'#settings-main-form [name=plexID]\')"'
 				),
 				array(
 					'type' => 'input',

+ 20 - 1
api/homepage/plex.php

@@ -35,18 +35,37 @@ trait PlexHomepageItem
 						'help' => 'Please make sure to use local IP address and port - You also may use local dns name too.',
 						'placeholder' => 'http(s)://hostname:port'
 					),
+					array(
+						'type' => 'blank',
+						'name' => '',
+						'label' => '',
+					),
 					array(
 						'type' => 'password-alt',
 						'name' => 'plexToken',
 						'label' => 'Token',
 						'value' => $this->config['plexToken']
 					),
+					array(
+						'type' => 'button',
+						'label' => 'Get Plex Token',
+						'icon' => 'fa fa-ticket',
+						'text' => 'Retrieve',
+						'attr' => 'onclick="showPlexTokenForm(\'#homepage-Plex-form [name=plexToken]\')"'
+					),
 					array(
 						'type' => 'password-alt',
 						'name' => 'plexID',
 						'label' => 'Plex Machine',
 						'value' => $this->config['plexID']
-					)
+					),
+					array(
+						'type' => 'button',
+						'label' => 'Get Plex Machine',
+						'icon' => 'fa fa-id-badge',
+						'text' => 'Retrieve',
+						'attr' => 'onclick="showPlexMachineForm(\'#homepage-Plex-form [name=plexID]\')"'
+					),
 				),
 				'Active Streams' => array(
 					array(