mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #3604 from thornbill/fix-custom-elements
Fix custom element creation
(cherry picked from commit f2226ee745
)
Signed-off-by: crobibero <cody@robibe.ro>
This commit is contained in:
parent
c74712e13f
commit
0b19f0d85e
3 changed files with 19 additions and 17 deletions
|
@ -1,4 +1,6 @@
|
|||
import escapeHtml from 'escape-html';
|
||||
import Headroom from 'headroom.js';
|
||||
|
||||
import dom from './dom';
|
||||
import layoutManager from '../components/layoutManager';
|
||||
import inputManager from './inputManager';
|
||||
|
@ -12,14 +14,14 @@ import browser from './browser';
|
|||
import globalize from './globalize';
|
||||
import imageHelper from './imagehelper';
|
||||
import { getMenuLinks } from '../scripts/settings/webSettings';
|
||||
import Dashboard, { pageClassOn } from './clientUtils';
|
||||
import ServerConnections from '../components/ServerConnections';
|
||||
|
||||
import '../elements/emby-button/paper-icon-button-light';
|
||||
|
||||
import 'material-design-icons-iconfont';
|
||||
import '../assets/css/scrollstyles.scss';
|
||||
import '../assets/css/flexstyles.scss';
|
||||
import Dashboard, { pageClassOn } from '../utils/dashboard';
|
||||
import ServerConnections from '../components/ServerConnections';
|
||||
import Headroom from 'headroom.js';
|
||||
import { getParameterByName } from '../utils/url.ts';
|
||||
|
||||
/* eslint-disable indent */
|
||||
|
||||
|
@ -669,9 +671,8 @@ import { getParameterByName } from '../utils/url.ts';
|
|||
if (customMenuOptions) {
|
||||
getMenuLinks().then(links => {
|
||||
links.forEach(link => {
|
||||
const option = document.createElement('a');
|
||||
option.setAttribute('is', 'emby-linkbutton');
|
||||
option.className = 'navMenuOption lnkMediaFolder';
|
||||
const option = document.createElement('a', 'emby-linkbutton');
|
||||
option.classList.add('navMenuOption', 'lnkMediaFolder');
|
||||
option.rel = 'noopener noreferrer';
|
||||
option.target = '_blank';
|
||||
option.href = link.url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue