Ps 575 pop out (#2705)
* Disable the ability to open infinite popouts in the browser * fixing lint error * Adding padding * Updating code to use ngIf instead of show for the app-pop-out
This commit is contained in:
parent
11f04d0c1e
commit
8de7f522c6
|
@ -18,7 +18,10 @@ export class PopOutComponent implements OnInit {
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
if (this.show) {
|
if (this.show) {
|
||||||
if (this.popupUtilsService.inSidebar(window) && this.platformUtilsService.isFirefox()) {
|
if (
|
||||||
|
(this.popupUtilsService.inSidebar(window) && this.platformUtilsService.isFirefox()) ||
|
||||||
|
this.popupUtilsService.inPopout(window)
|
||||||
|
) {
|
||||||
this.show = false;
|
this.show = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -215,6 +215,7 @@ header {
|
||||||
|
|
||||||
app-pop-out {
|
app-pop-out {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
padding-right: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<header>
|
<header>
|
||||||
<h1 class="sr-only">{{ "currentTab" | i18n }}</h1>
|
<h1 class="sr-only">{{ "currentTab" | i18n }}</h1>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<app-pop-out [show]="!inSidebar"></app-pop-out>
|
<app-pop-out *ngIf="!inSidebar"></app-pop-out>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
appBlurClick
|
appBlurClick
|
||||||
|
|
Loading…
Reference in New Issue