()
| 134 | } |
| 135 | |
| 136 | private async initPageTitleFormatMenu(): Promise<void> { |
| 137 | const isBetterBibTeXActive = await this.isBetterBibTeXActive(); |
| 138 | |
| 139 | const menuItems = Object.values(PageTitleFormat).map<MenuItem>( |
| 140 | (format) => ({ |
| 141 | disabled: |
| 142 | format === PageTitleFormat.itemCitationKey && !isBetterBibTeXActive, |
| 143 | l10nId: PAGE_TITLE_FORMAT_L10N_IDS[format], |
| 144 | value: format, |
| 145 | }), |
| 146 | ); |
| 147 | |
| 148 | setMenuItems(this.pageTitleFormatMenu, menuItems); |
| 149 | this.pageTitleFormatMenu.disabled = false; |
| 150 | } |
| 151 | |
| 152 | private async initSyncConfigsTable(): Promise<void> { |
| 153 | // oxlint-disable-next-line typescript/no-non-null-assertion |
no test coverage detected