";
- deviceHtml += '
';
- deviceHtml += '
';
- deviceHtml += '';
- deviceHtml += '
';
- return deviceHtml;
- }).join('');
- page.querySelector('.devicesList').innerHTML = html;
-}
-
-function loadData(page) {
- loading.show();
- ApiClient.getJSON(ApiClient.getUrl('Devices')).then(function (result) {
- load(page, result.Items);
- deviceIds = result.Items.map((device) => device.Id);
- loading.hide();
- });
-}
-
-export default function (view) {
- view.querySelector('.devicesList').addEventListener('click', function (e) {
- const btnDeviceMenu = dom.parentWithClass(e.target, 'btnDeviceMenu');
-
- if (btnDeviceMenu) {
- showDeviceMenu(view, btnDeviceMenu, btnDeviceMenu.getAttribute('data-id'));
- }
- });
- view.addEventListener('viewshow', function () {
- loadData(this);
- });
-
- view.querySelector('#deviceDeleteAll').addEventListener('click', function() {
- deleteAllDevices(view);
- });
-}
-
diff --git a/src/apps/dashboard/routes/_asyncRoutes.ts b/src/apps/dashboard/routes/_asyncRoutes.ts
index 0cda4e2595..8c65b38060 100644
--- a/src/apps/dashboard/routes/_asyncRoutes.ts
+++ b/src/apps/dashboard/routes/_asyncRoutes.ts
@@ -4,7 +4,7 @@ import { AppType } from 'constants/appType';
export const ASYNC_ADMIN_ROUTES: AsyncRoute[] = [
{ path: 'activity', type: AppType.Dashboard },
{ path: 'branding', type: AppType.Dashboard },
- { path: 'devices2', page: 'devices', type: AppType.Dashboard },
+ { path: 'devices', type: AppType.Dashboard },
{ path: 'keys', type: AppType.Dashboard },
{ path: 'logs', type: AppType.Dashboard },
{ path: 'playback/trickplay', type: AppType.Dashboard },
diff --git a/src/apps/dashboard/routes/_legacyRoutes.ts b/src/apps/dashboard/routes/_legacyRoutes.ts
index c2d9359ee2..a20083e3d2 100644
--- a/src/apps/dashboard/routes/_legacyRoutes.ts
+++ b/src/apps/dashboard/routes/_legacyRoutes.ts
@@ -23,20 +23,6 @@ export const LEGACY_ADMIN_ROUTES: LegacyRoute[] = [
controller: 'networking',
view: 'networking.html'
}
- }, {
- path: 'devices',
- pageProps: {
- appType: AppType.Dashboard,
- controller: 'devices/devices',
- view: 'devices/devices.html'
- }
- }, {
- path: 'devices/edit',
- pageProps: {
- appType: AppType.Dashboard,
- controller: 'devices/device',
- view: 'devices/device.html'
- }
}, {
path: 'libraries',
pageProps: {