mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2024-12-05 02:11:32 +00:00
Make URL bar optional
This commit is contained in:
parent
8a364f843e
commit
9d2efb3c45
@ -21,6 +21,7 @@ export const config = {
|
||||
'web-only'
|
||||
],
|
||||
iframeUrl: '/webservice',
|
||||
showUrlBar: false,
|
||||
hideMessages: false
|
||||
},
|
||||
ide: {
|
||||
|
@ -12,7 +12,7 @@
|
||||
<div class="tfw-web tao-grid-top-left"
|
||||
[ngClass]="{'deploy-blur': deploying || polling}">
|
||||
<app-web *ngIf="!iframeUrl"></app-web>
|
||||
<div class="urlbar-container">
|
||||
<div *ngIf="showUrlBar" class="urlbar-container">
|
||||
<button class="refresh btn btn-sm rounded-circle" (click)="reloadIframe()">↻</button>
|
||||
<input type="text"
|
||||
#urlbar
|
||||
|
@ -29,6 +29,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
|
||||
layout: string = config.dashboard.currentLayout;
|
||||
hideMessages: boolean = config.dashboard.hideMessages;
|
||||
iframeUrl: string = config.dashboard.iframeUrl;
|
||||
showUrlBar = config.dashboard.showUrlBar;
|
||||
actualIframeUrl: string = this.iframeUrl;
|
||||
selectedTerminalMenuItem: string = config.dashboard.terminalOrConsole;
|
||||
iframeReloadSubscription: Subscription;
|
||||
|
Loading…
Reference in New Issue
Block a user