diff --git a/dashboard-ui/addplugin.html b/dashboard-ui/addplugin.html
index a348b58a1e..ed18d304f9 100644
--- a/dashboard-ui/addplugin.html
+++ b/dashboard-ui/addplugin.html
@@ -27,7 +27,7 @@
@@ -65,7 +65,6 @@
diff --git a/dashboard-ui/autoorganizetv.html b/dashboard-ui/autoorganizetv.html
index 2dad99fabe..b2059c7bf0 100644
--- a/dashboard-ui/autoorganizetv.html
+++ b/dashboard-ui/autoorganizetv.html
@@ -154,7 +154,7 @@
${LabelDeleteEmptyFoldersHelp}
-
+
diff --git a/dashboard-ui/bower_components/emby-webcomponents/.bower.json b/dashboard-ui/bower_components/emby-webcomponents/.bower.json
index e9c678e676..f88a264c0b 100644
--- a/dashboard-ui/bower_components/emby-webcomponents/.bower.json
+++ b/dashboard-ui/bower_components/emby-webcomponents/.bower.json
@@ -14,12 +14,12 @@
},
"devDependencies": {},
"ignore": [],
- "version": "1.4.253",
- "_release": "1.4.253",
+ "version": "1.4.254",
+ "_release": "1.4.254",
"_resolution": {
"type": "version",
- "tag": "1.4.253",
- "commit": "858cc490a36d41641aed43e556944f803d5f083a"
+ "tag": "1.4.254",
+ "commit": "261edde431045d80a709a5ac89a8307e7e012f31"
},
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.1",
diff --git a/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.css b/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.css
index c2c6763a16..27e6a3e427 100644
--- a/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.css
+++ b/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.css
@@ -4,10 +4,12 @@
padding: 0;
border: none;
max-height: 84%;
+ border-radius: 1px !important;
}
.actionsheet-fullscreen {
max-height: none;
+ border-radius: 0 !important;
}
.actionSheetContent-centered {
diff --git a/dashboard-ui/bower_components/emby-webcomponents/confirm/confirm.js b/dashboard-ui/bower_components/emby-webcomponents/confirm/confirm.js
index f7c80885cf..0891ada469 100644
--- a/dashboard-ui/bower_components/emby-webcomponents/confirm/confirm.js
+++ b/dashboard-ui/bower_components/emby-webcomponents/confirm/confirm.js
@@ -15,15 +15,15 @@ define(['dialog', 'globalize'], function (dialog, globalize) {
var items = [];
items.push({
- name: globalize.translate('sharedcomponents#ButtonOk'),
- id: 'ok',
- type: 'submit'
+ name: options.cancelText || globalize.translate('sharedcomponents#ButtonCancel'),
+ id: 'cancel',
+ type: options.primary == 'cancel' ? 'submit' : 'cancel'
});
items.push({
- name: globalize.translate('sharedcomponents#ButtonCancel'),
- id: 'cancel',
- type: 'cancel'
+ name: options.confirmText || globalize.translate('sharedcomponents#ButtonOk'),
+ id: 'ok',
+ type: options.primary == 'cancel' ? 'cancel' : 'submit'
});
options.buttons = items;
diff --git a/dashboard-ui/bower_components/emby-webcomponents/dialog/dialog.js b/dashboard-ui/bower_components/emby-webcomponents/dialog/dialog.js
index ef728db827..5b212ad9b3 100644
--- a/dashboard-ui/bower_components/emby-webcomponents/dialog/dialog.js
+++ b/dashboard-ui/bower_components/emby-webcomponents/dialog/dialog.js
@@ -1,21 +1,5 @@
define(['dialogHelper', 'dom', 'layoutManager', 'scrollHelper', 'globalize', 'require', 'material-icons', 'emby-button', 'paper-icon-button-light', 'emby-input', 'formDialogStyle'], function (dialogHelper, dom, layoutManager, scrollHelper, globalize, require) {
- function showTvDialog(options) {
- return new Promise(function (resolve, reject) {
-
- require(['actionsheet'], function (actionSheet) {
-
- actionSheet.show({
-
- title: options.text,
- items: options.buttons,
- timeout: options.timeout
-
- }).then(resolve, reject);
- });
- });
- }
-
function showDialog(options, template) {
var dialogOptions = {
@@ -23,7 +7,9 @@ define(['dialogHelper', 'dom', 'layoutManager', 'scrollHelper', 'globalize', 're
scrollY: false
};
- if (layoutManager.tv) {
+ var enableTvLayout = layoutManager.tv;
+
+ if (enableTvLayout) {
dialogOptions.size = 'fullscreen';
} else {
//dialogOptions.size = 'mini';
@@ -35,10 +21,17 @@ define(['dialogHelper', 'dom', 'layoutManager', 'scrollHelper', 'globalize', 're
dlg.innerHTML = globalize.translateHtml(template, 'sharedcomponents');
- if (layoutManager.tv) {
- scrollHelper.centerFocus.on(dlg.querySelector('.formDialogContent'), false);
+ if (enableTvLayout) {
+ dlg.style['align-items'] = 'center';
+ dlg.style['justify-content'] = 'center';
+ var formDialogContent = dlg.querySelector('.formDialogContent');
+ formDialogContent.style['flex-grow'] = 'initial';
+ formDialogContent.style['max-width'] = '50%';
+ formDialogContent.style['max-height'] = '60%';
+ scrollHelper.centerFocus.on(formDialogContent, false);
} else {
- dlg.querySelector('.dialogContentInner').classList.add('dialogContentInner-mini');
+ var minWidth = (Math.min(options.buttons.length * 150, dom.getWindowSize().innerWidth - 50));
+ dlg.style.maxWidth = (minWidth + 200) + 'px';
}
//dlg.querySelector('.btnCancel').addEventListener('click', function (e) {
@@ -56,7 +49,7 @@ define(['dialogHelper', 'dom', 'layoutManager', 'scrollHelper', 'globalize', 're
var item = options.buttons[i];
var autoFocus = i == 0 ? ' autofocus' : '';
- var buttonClass = 'btnOption raised block formDialogFooterItem';
+ var buttonClass = 'btnOption raised formDialogFooterItem formDialogFooterItem-autosize';
if (item.type) {
buttonClass += ' button-' + item.type;
@@ -65,8 +58,6 @@ define(['dialogHelper', 'dom', 'layoutManager', 'scrollHelper', 'globalize', 're
html += '';
}
- dlg.style.minWidth = (Math.min(options.buttons.length * 150, dom.getWindowSize().innerWidth - 50)) + 'px';
-
dlg.querySelector('.formDialogFooter').innerHTML = html;
var dialogResult;
@@ -82,7 +73,7 @@ define(['dialogHelper', 'dom', 'layoutManager', 'scrollHelper', 'globalize', 're
return dialogHelper.open(dlg).then(function () {
- if (layoutManager.tv) {
+ if (enableTvLayout) {
scrollHelper.centerFocus.off(dlg.querySelector('.formDialogContent'), false);
}
@@ -106,10 +97,6 @@ define(['dialogHelper', 'dom', 'layoutManager', 'scrollHelper', 'globalize', 're
options = text;
}
- if (layoutManager.tv) {
- return showTvDialog(options);
- }
-
return new Promise(function (resolve, reject) {
require(['text!./dialog.template.html'], function (template) {
showDialog(options, template).then(resolve, reject);
diff --git a/dashboard-ui/bower_components/emby-webcomponents/dialog/dialog.template.html b/dashboard-ui/bower_components/emby-webcomponents/dialog/dialog.template.html
index 61d81d900e..96fc5ae5ed 100644
--- a/dashboard-ui/bower_components/emby-webcomponents/dialog/dialog.template.html
+++ b/dashboard-ui/bower_components/emby-webcomponents/dialog/dialog.template.html
@@ -1,16 +1,15 @@
-
diff --git a/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js b/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js
index f17f4f5311..7c1d9e501b 100644
--- a/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js
+++ b/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js
@@ -34,7 +34,14 @@
require(['confirm'], function (confirm) {
- confirm(Globalize.translate('MessageConfirmRemoveMediaLocation'), Globalize.translate('HeaderRemoveMediaLocation')).then(function () {
+ confirm({
+
+ title: Globalize.translate('HeaderRemoveMediaLocation'),
+ text: Globalize.translate('MessageConfirmRemoveMediaLocation'),
+ confirmText: Globalize.translate('sharedcomponents#ButtonDelete'),
+ primary: 'cancel'
+
+ }).then(function () {
var refreshAfterChange = currentOptions.refresh;
diff --git a/dashboard-ui/components/tvproviders/schedulesdirect.template.html b/dashboard-ui/components/tvproviders/schedulesdirect.template.html
index 3daded0da1..4546845eed 100644
--- a/dashboard-ui/components/tvproviders/schedulesdirect.template.html
+++ b/dashboard-ui/components/tvproviders/schedulesdirect.template.html
@@ -21,7 +21,7 @@
-
+
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/dashboard-ui/components/tvproviders/xmltv.template.html b/dashboard-ui/components/tvproviders/xmltv.template.html
index 5e5adeeba8..f18aa65b9e 100644
--- a/dashboard-ui/components/tvproviders/xmltv.template.html
+++ b/dashboard-ui/components/tvproviders/xmltv.template.html
@@ -45,7 +45,7 @@
${ButtonLearnMore}
-
-
+
+
\ No newline at end of file
diff --git a/dashboard-ui/connectlogin.html b/dashboard-ui/connectlogin.html
index f8aee7f4ab..53af8f5ca1 100644
--- a/dashboard-ui/connectlogin.html
+++ b/dashboard-ui/connectlogin.html
@@ -62,11 +62,9 @@
diff --git a/dashboard-ui/device.html b/dashboard-ui/device.html
index db56eadac6..9b3acd848a 100644
--- a/dashboard-ui/device.html
+++ b/dashboard-ui/device.html
@@ -23,7 +23,7 @@
${LabelCameraUploadPathHelp}
-
+
diff --git a/dashboard-ui/dlnaprofile.html b/dashboard-ui/dlnaprofile.html
index f25a247bbc..46e2511cf7 100644
--- a/dashboard-ui/dlnaprofile.html
+++ b/dashboard-ui/dlnaprofile.html
@@ -329,10 +329,10 @@
diff --git a/dashboard-ui/forgotpassword.html b/dashboard-ui/forgotpassword.html
index 4412dc7de4..a93e9702bf 100644
--- a/dashboard-ui/forgotpassword.html
+++ b/dashboard-ui/forgotpassword.html
@@ -14,12 +14,10 @@
diff --git a/dashboard-ui/forgotpasswordpin.html b/dashboard-ui/forgotpasswordpin.html
index abd217a5dc..d8456dc957 100644
--- a/dashboard-ui/forgotpasswordpin.html
+++ b/dashboard-ui/forgotpasswordpin.html
@@ -13,12 +13,10 @@
diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html
index 776623f0a4..1aae70219f 100644
--- a/dashboard-ui/itemdetails.html
+++ b/dashboard-ui/itemdetails.html
@@ -36,8 +36,8 @@
-
diff --git a/dashboard-ui/livetvseriestimer.html b/dashboard-ui/livetvseriestimer.html
index d9e013c2b1..eff000058b 100644
--- a/dashboard-ui/livetvseriestimer.html
+++ b/dashboard-ui/livetvseriestimer.html
@@ -68,9 +68,9 @@
-
+
-
+
diff --git a/dashboard-ui/livetvsettings.html b/dashboard-ui/livetvsettings.html
index 72c50d9031..47b2e62a05 100644
--- a/dashboard-ui/livetvsettings.html
+++ b/dashboard-ui/livetvsettings.html
@@ -95,7 +95,7 @@
-
+
diff --git a/dashboard-ui/livetvtunerprovider-m3u.html b/dashboard-ui/livetvtunerprovider-m3u.html
index daa21f2f6d..58da9701da 100644
--- a/dashboard-ui/livetvtunerprovider-m3u.html
+++ b/dashboard-ui/livetvtunerprovider-m3u.html
@@ -15,8 +15,8 @@
-
-
+
+
diff --git a/dashboard-ui/livetvtunerprovider-satip.html b/dashboard-ui/livetvtunerprovider-satip.html
index 79b885b83b..bf1b9d402c 100644
--- a/dashboard-ui/livetvtunerprovider-satip.html
+++ b/dashboard-ui/livetvtunerprovider-satip.html
@@ -63,8 +63,8 @@
-
-
+
+
diff --git a/dashboard-ui/metadata.html b/dashboard-ui/metadata.html
index 516055a649..dbae991e9f 100644
--- a/dashboard-ui/metadata.html
+++ b/dashboard-ui/metadata.html
@@ -28,7 +28,7 @@
-
+
diff --git a/dashboard-ui/metadataimages.html b/dashboard-ui/metadataimages.html
index 3ffd7e7733..4c65083b4a 100644
--- a/dashboard-ui/metadataimages.html
+++ b/dashboard-ui/metadataimages.html
@@ -87,7 +87,7 @@
-
+
diff --git a/dashboard-ui/metadatanfo.html b/dashboard-ui/metadatanfo.html
index be0dc5a5aa..f2c991aa19 100644
--- a/dashboard-ui/metadatanfo.html
+++ b/dashboard-ui/metadatanfo.html
@@ -42,7 +42,7 @@
${LabelKodiMetadataEnableExtraThumbsHelp}
-
+
diff --git a/dashboard-ui/mypreferencesdisplay.html b/dashboard-ui/mypreferencesdisplay.html
index ab56056e35..5e147319dc 100644
--- a/dashboard-ui/mypreferencesdisplay.html
+++ b/dashboard-ui/mypreferencesdisplay.html
@@ -88,7 +88,6 @@
diff --git a/dashboard-ui/mypreferenceshome.html b/dashboard-ui/mypreferenceshome.html
index 257f8561cc..b869701a2d 100644
--- a/dashboard-ui/mypreferenceshome.html
+++ b/dashboard-ui/mypreferenceshome.html
@@ -112,7 +112,6 @@
diff --git a/dashboard-ui/mypreferenceslanguages.html b/dashboard-ui/mypreferenceslanguages.html
index bebe736005..92cdacbce4 100644
--- a/dashboard-ui/mypreferenceslanguages.html
+++ b/dashboard-ui/mypreferenceslanguages.html
@@ -95,7 +95,6 @@
diff --git a/dashboard-ui/myprofile.html b/dashboard-ui/myprofile.html
index f230ade6a2..239badb2b6 100644
--- a/dashboard-ui/myprofile.html
+++ b/dashboard-ui/myprofile.html
@@ -61,7 +61,7 @@
-
+