1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #4720 from grafixeyehero/cleanup-use-file-name-for-export

Cleanup rename default class name based on file name
This commit is contained in:
Bill Thornton 2023-07-14 10:53:57 -04:00 committed by GitHub
commit d79a8a0421
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 37 deletions

View file

@ -11,25 +11,23 @@ function render() {
class AppFooter { class AppFooter {
constructor() { constructor() {
const self = this; this.element = render();
self.element = render(); this.add = function (elem) {
self.add = function (elem) { this.element.appendChild(elem);
self.element.appendChild(elem);
}; };
self.insert = function (elem) { this.insert = function (elem) {
if (typeof elem === 'string') { if (typeof elem === 'string') {
self.element.insertAdjacentHTML('afterbegin', elem); this.element.insertAdjacentHTML('afterbegin', elem);
} else { } else {
self.element.insertBefore(elem, self.element.firstChild); this.element.insertBefore(elem, this.element.firstChild);
} }
}; };
} }
destroy() {
const self = this;
self.element = null; destroy() {
this.element = null;
} }
} }

View file

@ -80,7 +80,8 @@ function saveValues(context, options) {
}); });
} }
function showEditor(itemType, options, availableOptions) { class ImageOptionsEditor {
show(itemType, options, availableOptions) {
const dlg = dialogHelper.createDialog({ const dlg = dialogHelper.createDialog({
size: 'small', size: 'small',
removeOnClose: true, removeOnClose: true,
@ -101,11 +102,6 @@ function showEditor(itemType, options, availableOptions) {
dialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
} }
export class editor {
constructor() {
this.show = showEditor;
}
} }
export default editor; export default ImageOptionsEditor;

View file

@ -1,5 +1,7 @@
<div class="formDialogHeader"> <div class="formDialogHeader">
<button type="button" is="paper-icon-button-light" class="btnCancel autoSize" tabindex="-1" title="${ButtonBack}"><span class="material-icons arrow_back" aria-hidden="true"></span></button> <button type="button" is="paper-icon-button-light" class="btnCancel autoSize" tabindex="-1" title="${ButtonBack}">
<span class="material-icons arrow_back" aria-hidden="true"></span>
</button>
<h3 class="formDialogHeaderTitle"> <h3 class="formDialogHeaderTitle">
${HeaderImageOptions} ${HeaderImageOptions}
</h3> </h3>