mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 11:52:54 +00:00 
			
		
		
		
	Make URL bar optional
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user