Make URL bar optional

This commit is contained in:
Kristóf Tóth 2019-06-25 11:12:18 +02:00
parent 8a364f843e
commit 9d2efb3c45
3 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@ export const config = {
'web-only'
],
iframeUrl: '/webservice',
showUrlBar: false,
hideMessages: false
},
ide: {

View File

@ -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()">&#8635;</button>
<input type="text"
#urlbar

View File

@ -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;