| 621 | |
| 622 | |
| 623 | createDescription(settingsKey: string): any { |
| 624 | |
| 625 | var description = document.createElement("TR") |
| 626 | var text: string |
| 627 | switch (settingsKey) { |
| 628 | |
| 629 | case "authentication.web": |
| 630 | text = "{{.settings.authenticationWEB.description}}" |
| 631 | break |
| 632 | |
| 633 | case "authentication.m3u": |
| 634 | text = "{{.settings.authenticationM3U.description}}" |
| 635 | break |
| 636 | |
| 637 | case "authentication.pms": |
| 638 | text = "{{.settings.authenticationPMS.description}}" |
| 639 | break |
| 640 | |
| 641 | case "authentication.xml": |
| 642 | text = "{{.settings.authenticationXML.description}}" |
| 643 | break |
| 644 | |
| 645 | case "authentication.api": |
| 646 | if (SERVER["settings"]["authentication.web"] == true) { |
| 647 | text = "{{.settings.authenticationAPI.description}}" |
| 648 | } |
| 649 | break |
| 650 | |
| 651 | case "ThreadfinAutoUpdate": |
| 652 | text = "{{.settings.ThreadfinAutoUpdate.description}}" |
| 653 | break |
| 654 | |
| 655 | case "backup.keep": |
| 656 | text = "{{.settings.backupKeep.description}}" |
| 657 | break |
| 658 | |
| 659 | case "backup.path": |
| 660 | text = "{{.settings.backupPath.description}}" |
| 661 | break |
| 662 | |
| 663 | case "temp.path": |
| 664 | text = "{{.settings.tempPath.description}}" |
| 665 | break |
| 666 | |
| 667 | case "buffer": |
| 668 | text = "{{.settings.streamBuffering.description}}" |
| 669 | break |
| 670 | |
| 671 | case "buffer.size.kb": |
| 672 | text = "{{.settings.bufferSize.description}}" |
| 673 | break |
| 674 | |
| 675 | case "storeBufferInRAM": |
| 676 | text = "{{.settings.storeBufferInRAM.description}}" |
| 677 | break |
| 678 | |
| 679 | case "forceHttps": |
| 680 | text = "{{.settings.forceHttps.description}}" |