fix DLNA icon, calls, remove unneeded depencendies in dlnacasts

This commit is contained in:
grunjol
2016-04-04 19:31:23 -03:00
parent 6aa7058184
commit 57e5eed47f
3 changed files with 7 additions and 7 deletions

View File

@@ -19,7 +19,7 @@
"application-config-path": "^0.1.0",
"chromecasts": "^1.8.0",
"create-torrent": "^3.22.1",
"dlnacasts": "^0.0.1",
"dlnacasts": "^0.0.2",
"drag-drop": "^2.11.0",
"electron-localshortcut": "^0.6.0",
"electron-prebuilt": "0.37.3",

View File

@@ -246,7 +246,7 @@ function dispatch (action, ...args) {
if (action === 'openTorrentContextMenu') {
openTorrentContextMenu(args[0] /* infoHash */)
}
if (action === 'open') {
if (action === 'openDevice') {
lazyLoadCast().open(args[0] /* deviceType */)
}
if (action === 'stopCasting') {

View File

@@ -190,7 +190,7 @@ function renderCastScreen (state) {
backgroundImage: cssBackgroundImagePoster(state)
}
// Show whether we're connected to Chromecast / Airplay /DLNA
// Show whether we're connected to Chromecast / Airplay / DLNA
var castStatus = isStarting ? 'Connecting...' : 'Connected'
return hx`
<div class='letterbox' style=${style}>
@@ -275,9 +275,9 @@ function renderPlayerControls (state) {
chromecastClass = ''
airplayClass = ''
dlnaClass = ''
chromecastHandler = dispatcher('open', 'chromecast')
airplayHandler = dispatcher('open', 'airplay')
dlnaHandler = dispatcher('open', 'dlna')
chromecastHandler = dispatcher('openDevice', 'chromecast')
airplayHandler = dispatcher('openDevice', 'airplay')
dlnaHandler = dispatcher('openDevice', 'dlna')
}
if (state.devices.chromecast || isOnChromecast) {
elements.push(hx`
@@ -302,7 +302,7 @@ function renderPlayerControls (state) {
<i.icon.device
class=${dlnaClass}
onclick=${dlnaHandler}>
cast
tv
</i>
`)
}