MOBILE-4081 tag: Do not select any tag if on mobile view

main
Pau Ferrer Ocaña 2022-11-29 09:21:14 +01:00
parent 6ff5868e9d
commit dd13391c4d
2 changed files with 10 additions and 2 deletions

View File

@ -74,6 +74,7 @@
--menu-border-width: 0px; --menu-border-width: 0px;
--menu-box-shadow: none; --menu-box-shadow: none;
--menu-z: 0px; --menu-z: 0px;
--selected-item-border-width: 0px;
--selected-item-color: transparent; --selected-item-color: transparent;
} }

View File

@ -43,7 +43,7 @@ export class CoreTagIndexPage implements OnInit {
areas: CoreTagAreaDisplay[] = []; areas: CoreTagAreaDisplay[] = [];
/** /**
* View loaded. * @inheritdoc
*/ */
async ngOnInit(): Promise<void> { async ngOnInit(): Promise<void> {
this.tagId = CoreNavigator.getRouteNumberParam('tagId') || this.tagId; this.tagId = CoreNavigator.getRouteNumberParam('tagId') || this.tagId;
@ -143,7 +143,14 @@ export class CoreTagIndexPage implements OnInit {
* @param area Area. * @param area Area.
*/ */
openArea(area: CoreTagAreaDisplay): void { openArea(area: CoreTagAreaDisplay): void {
if (area.id === this.selectedAreaId) {
// Already opened.
return;
}
if (CoreScreen.isTablet) {
this.selectedAreaId = area.id; this.selectedAreaId = area.id;
}
const params = { const params = {
tagId: this.tagId, tagId: this.tagId,