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' 'web-only'
], ],
iframeUrl: '/webservice', iframeUrl: '/webservice',
showUrlBar: false,
hideMessages: false hideMessages: false
}, },
ide: { ide: {

View File

@ -12,7 +12,7 @@
<div class="tfw-web tao-grid-top-left" <div class="tfw-web tao-grid-top-left"
[ngClass]="{'deploy-blur': deploying || polling}"> [ngClass]="{'deploy-blur': deploying || polling}">
<app-web *ngIf="!iframeUrl"></app-web> <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> <button class="refresh btn btn-sm rounded-circle" (click)="reloadIframe()">&#8635;</button>
<input type="text" <input type="text"
#urlbar #urlbar

View File

@ -29,6 +29,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
layout: string = config.dashboard.currentLayout; layout: string = config.dashboard.currentLayout;
hideMessages: boolean = config.dashboard.hideMessages; hideMessages: boolean = config.dashboard.hideMessages;
iframeUrl: string = config.dashboard.iframeUrl; iframeUrl: string = config.dashboard.iframeUrl;
showUrlBar = config.dashboard.showUrlBar;
actualIframeUrl: string = this.iframeUrl; actualIframeUrl: string = this.iframeUrl;
selectedTerminalMenuItem: string = config.dashboard.terminalOrConsole; selectedTerminalMenuItem: string = config.dashboard.terminalOrConsole;
iframeReloadSubscription: Subscription; iframeReloadSubscription: Subscription;