';
+ }
+
+ var text = options.html || options.text;
+
+ if (text) {
+ html += '
' + text + '
';
+ }
+
+ html += '
';
+
+ var i, length;
+ for (i = 0, length = options.buttons.length; i < length; i++) {
+
+ var item = options.buttons[i];
+ var autoFocus = i == 0 ? ' autofocus' : '';
+ html += '';
+ }
+
+ html += '
';
+
+ dlg.innerHTML = html;
+ document.body.appendChild(dlg);
+
+ var dialogResult;
+ function onButtonClick() {
+ dialogResult = this.getAttribute('data-id');
+ dialogHelper.close(dlg);
+ }
+
+ var buttons = dlg.querySelectorAll('.btnOption');
+ for (i = 0, length = options.buttons.length; i < length; i++) {
+ buttons[i].addEventListener('click', onButtonClick);
+ }
+
+ dialogHelper.open(dlg).then(function () {
+
+ if (dialogResult) {
+ resolve(dialogResult);
+ } else {
+ reject();
+ }
+ });
+ }
+
+ function showDialog(options) {
+ return new Promise(function (resolve, reject) {
+
+ require(['dialogHelper', 'emby-button'], function (dialogHelper) {
+ showDialogInternal(options, dialogHelper, resolve, reject);
+ });
+ });
+ }
+
+ return function (text, title) {
+
+ var options;
+ if (typeof text === 'string') {
+ options = {
+ title: title,
+ text: text
+ };
+ } else {
+ options = text;
+ }
+
+ if (layoutManager.tv) {
+ return showTvDialog(options);
+ }
+
+ return showDialog(options);
+ };
+});
\ No newline at end of file
diff --git a/dashboard-ui/bower_components/emby-webcomponents/listview/listview.css b/dashboard-ui/bower_components/emby-webcomponents/listview/listview.css
index c2987411a0..17a59f638c 100644
--- a/dashboard-ui/bower_components/emby-webcomponents/listview/listview.css
+++ b/dashboard-ui/bower_components/emby-webcomponents/listview/listview.css
@@ -1,7 +1,7 @@
button.listItem {
background: transparent;
- border: 0 !important;
- border-bottom: 1px solid #2a2a2a !important;
+ border: 0;
+ border-bottom: 1px solid #2a2a2a;
cursor: pointer;
outline: none !important;
color: inherit;
@@ -138,7 +138,7 @@ div.listItem {
transform: scale(1.025, 1.025);
}
- .listItem > .fab:first-child {
+ .listItem > .fab:first-child, .listItem > i:first-child {
margin-left: .75em;
}
diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/en-US.json b/dashboard-ui/bower_components/emby-webcomponents/strings/en-US.json
index e0a07ffdb9..1f3bff351e 100644
--- a/dashboard-ui/bower_components/emby-webcomponents/strings/en-US.json
+++ b/dashboard-ui/bower_components/emby-webcomponents/strings/en-US.json
@@ -127,5 +127,6 @@
"TryMultiSelectMessage": "To edit multiple media items, just click and hold any poster and select the items you want to manage. Try it!",
"HeaderConfirmRecordingCancellation": "Confirm Recording Cancellation",
"MessageConfirmRecordingCancellation": "Are you sure you wish to cancel this recording?",
- "Error": "Error"
+ "Error": "Error",
+ "VoiceInput": "Voice Input"
}
\ No newline at end of file
diff --git a/dashboard-ui/bower_components/emby-webcomponents/voice/voicedialog.js b/dashboard-ui/bower_components/emby-webcomponents/voice/voicedialog.js
index b394f82423..fe63ca6297 100644
--- a/dashboard-ui/bower_components/emby-webcomponents/voice/voicedialog.js
+++ b/dashboard-ui/bower_components/emby-webcomponents/voice/voicedialog.js
@@ -114,7 +114,7 @@ define(['dialogHelper', './voicereceiver', './voiceprocessor', 'globalize', 'emb
html += '
';
html += '';
html += '
';
- //html += title;
+ html += globalize.translate('sharedcomponents#VoiceInput');
html += '