()
| 810 | } |
| 811 | |
| 812 | createCategory(): void { |
| 813 | var headline = this.createCategoryHeadline(this.headline) |
| 814 | var settingsKeys = this.settingsKeys |
| 815 | |
| 816 | var doc = document.getElementById(this.DocumentID) |
| 817 | doc.appendChild(headline) |
| 818 | |
| 819 | // Tabelle für die Kategorie erstellen |
| 820 | |
| 821 | var table = document.createElement("TABLE") |
| 822 | |
| 823 | var keys = settingsKeys.split(",") |
| 824 | |
| 825 | keys.forEach(settingsKey => { |
| 826 | |
| 827 | switch (settingsKey) { |
| 828 | |
| 829 | case "authentication.pms": |
| 830 | case "authentication.m3u": |
| 831 | case "authentication.xml": |
| 832 | case "authentication.api": |
| 833 | if (SERVER["settings"]["authentication.web"] == false) { |
| 834 | break |
| 835 | } |
| 836 | |
| 837 | default: |
| 838 | var item = this.createSettings(settingsKey) |
| 839 | var description = this.createDescription(settingsKey) |
| 840 | |
| 841 | table.appendChild(item) |
| 842 | table.appendChild(description) |
| 843 | break |
| 844 | |
| 845 | } |
| 846 | |
| 847 | }); |
| 848 | |
| 849 | doc.appendChild(table) |
| 850 | doc.appendChild(this.createHR()) |
| 851 | } |
| 852 | |
| 853 | } |
| 854 |
no test coverage detected