dashboard: certificates: add missing _blank target

This commit is contained in:
Stephan de Wit 2024-12-13 09:01:21 +01:00
parent 698d6c76c1
commit 166ee7342c

View File

@ -92,7 +92,8 @@ export default class Certificates extends BaseTableWidget {
: `${this.translations.expiresin} ${remainingDays} ${this.translations.days}, ${validTo.toLocaleString()}`;
const descrContent = (type === 'cert' || type === 'ca')
? `<a href="/ui/trust/${type === 'cert' ? 'cert' : 'ca'}#edit=${encodeURIComponent(item.uuid)}" class="${type}-link">${item.descr}</a>`
? `<a href="/ui/trust/${type === 'cert' ? 'cert' : 'ca'}#edit=${encodeURIComponent(item.uuid)}"
class="${type}-link" target="_blank" rel="noopener noreferrer">${item.descr}</a>`
: `<b>${item.descr}</b>`;
const row = `