diff --git a/dashboard-ui/components/metadataeditor/metadataeditor.js b/dashboard-ui/components/metadataeditor/metadataeditor.js index 74e84971be..062b76ca44 100644 --- a/dashboard-ui/components/metadataeditor/metadataeditor.js +++ b/dashboard-ui/components/metadataeditor/metadataeditor.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'datetime', 'jQuery', 'emby-checkbox', 'emby-input', 'emby-select', 'paper-item-body', 'paper-icon-item', 'emby-textarea', 'paper-fab', 'paper-icon-button-light'], function (dialogHelper, datetime, $) { +define(['dialogHelper', 'datetime', 'jQuery', 'emby-checkbox', 'emby-input', 'emby-select', 'listViewStyle', 'emby-textarea', 'emby-button', 'paper-icon-button-light'], function (dialogHelper, datetime, $) { var currentContext; var metadataEditorInfo; @@ -968,21 +968,21 @@ } var html = ''; for (var i = 0; i < items.length; i++) { - html += ''; + html += '
'; - html += ''; + html += ''; - html += ''; + html += '
'; html += '
'; html += items[i]; html += '
'; - html += ''; + html += '
'; html += ''; - html += ''; + html += '
'; } list.innerHTML = html; @@ -999,11 +999,11 @@ var person = people[i]; - html += ''; + html += '
'; - html += ''; + html += ''; - html += ''; + html += ''; html += ''; - html += ''; + html += '
'; } elem.innerHTML = html; diff --git a/dashboard-ui/mysync.html b/dashboard-ui/mysync.html index 51f761b0a1..84dce42721 100644 --- a/dashboard-ui/mysync.html +++ b/dashboard-ui/mysync.html @@ -17,8 +17,7 @@
- - +
diff --git a/dashboard-ui/scripts/mysync.js b/dashboard-ui/scripts/mysync.js index 66b6084483..1ec8ddbcc8 100644 --- a/dashboard-ui/scripts/mysync.js +++ b/dashboard-ui/scripts/mysync.js @@ -1,4 +1,4 @@ -define(['localsync'], function () { +define(['loading', 'localsync'], function (loading) { function refreshSyncStatus(page) { @@ -7,7 +7,11 @@ var status = LocalSync.getSyncStatus(); page.querySelector('.labelSyncStatus').innerHTML = Globalize.translate('LabelLocalSyncStatusValue', status); - page.querySelector('.syncSpinner').active = status == "Active"; + if (status == 'Active') { + loading.show(); + } else { + loading.hide(); + } if (status == "Active") { page.querySelector('.btnSyncNow').classList.add('hide'); @@ -42,7 +46,7 @@ } else { view.querySelector('.localSyncStatus').classList.add('hide'); - view.querySelector('.syncSpinner').active = false; + loading.hide(); } view.addEventListener('viewbeforeshow', function () { @@ -58,7 +62,7 @@ view.addEventListener('viewbeforehide', function () { var page = this; - page.querySelector('.syncSpinner').active = false; + loading.hide(); if (interval) { clearInterval(interval); diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index ce71112ff4..7ac75dfebb 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -2776,7 +2776,7 @@ var AppInfo = {}; defineRoute({ path: '/mysync.html', - dependencies: ['scripts/syncactivity', 'scripts/taskbutton', 'paper-spinner', 'paper-fab', 'emby-button'], + dependencies: ['scripts/syncactivity', 'scripts/taskbutton', 'emby-button'], autoFocus: false, transition: 'fade', controller: 'scripts/mysync'