pankow now supports links in menus
This commit is contained in:
@@ -80,13 +80,12 @@ async function refresh() {
|
||||
hasOptionalServices.value = result.manifest && result.manifest.addons && (result.manifest.addons.turn?.optional || result.manifest.addons.redis?.optional);
|
||||
hasEmail.value = result.manifest && result.manifest.addons && (result.manifest.addons.sendmail || result.manifest.addons.recvmail);
|
||||
|
||||
// TODO info menu will likely not change during polling
|
||||
infoMenu.value = [];
|
||||
infoMenu.value.push({
|
||||
label: t('app.docsAction'),
|
||||
disabled: !result.manifest?.documentationUrl,
|
||||
// TODO support real href links
|
||||
action: () => { window.location.href = result.manifest.documentationUrl; }
|
||||
href: result.manifest.documentationUrl,
|
||||
target: '_blank',
|
||||
});
|
||||
|
||||
if (result.manifest?.postInstallMessage) {
|
||||
@@ -99,8 +98,8 @@ async function refresh() {
|
||||
if (result.manifest?.configurePath) {
|
||||
infoMenu.value.push({
|
||||
label: t('app.adminPageAction'),
|
||||
// TODO support real href links
|
||||
action: () => { window.location.href = link.value + result.manifest.configurePath; }
|
||||
href: link.value + result.manifest.configurePath,
|
||||
target: '_blank',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -115,15 +114,16 @@ async function refresh() {
|
||||
infoMenu.value.push({
|
||||
label: t('app.forumUrlAction'),
|
||||
disabled: !result.manifest?.forumUrl,
|
||||
// TODO support real href links
|
||||
action: () => { window.location.href = result.manifest.forumUrl; }
|
||||
href: result.manifest.forumUrl,
|
||||
target: '_blank',
|
||||
|
||||
});
|
||||
infoMenu.value.push({ separator: true });
|
||||
infoMenu.value.push({
|
||||
label: t('app.projectWebsiteAction'),
|
||||
disabled: !result.manifest?.website,
|
||||
// TODO support real href links
|
||||
action: () => { window.location.href = result.manifest.website; }
|
||||
href: result.manifest.website,
|
||||
target: '_blank',
|
||||
});
|
||||
|
||||
refreshTimer = setTimeout(refresh, 2000);
|
||||
|
||||
Reference in New Issue
Block a user