[Library | new-theme]: Bug fix in download from of result landing links | In menu items added "target" field to define if urls open in new tab and have external icon.

1. availableOn.component.ts: [Bug fix] Added class "uk-link-text" in links of license and providers.
2. menu.ts: In MenuItem added field target: string = "_blank"; and in constructor added parameters and initialization of target, type, isFeatured.
3. navigationBar.component.html: Updated checks for "custom-external" class and target according to target field of MenuItem.
4. app.component.ts: In "Manage" menu item set target to "_self".
5. menu.component.ts: (Admin form) In method "menuItemSaveConfirmed()" added: this.menuItemForm.value.target = this.menuItemForm.value['type'] == "internal" ? "_self" : "_blank";
This commit is contained in:
Konstantina Galouni 2022-06-29 13:56:19 +03:00
parent 41f5a6fc99
commit d33c5890a9
2 changed files with 2 additions and 2 deletions

View File

@ -301,7 +301,7 @@ export class AppComponent implements OnInit, OnDestroy {
if (this.isManager) {
this.menuItems.push(
{
rootItem: new MenuItem("manage", "Manage", this.properties.adminPortalURL + '/' + this.community.communityId, "", false, [], [], {}),
rootItem: new MenuItem("manage", "Manage", this.properties.adminPortalURL + '/' + this.community.communityId, "", false, [], [], {}, null, null, null, null, "_self"),
items: []
});
}

@ -1 +1 @@
Subproject commit beb21be4a0d428f4ee87a2af8da3e00c275750ea
Subproject commit bbbb7118654014845d71fd90e6545c6c3338c25f