Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google cloud shell missing web preview button

I stepped away from my sample Transport-Tracker project, which had been working just fine.

Now, when I run the Google Cloud Shell, the web preview button is no longer present. Also missing is the file transfer button. The Cloud Shell only includes the "Send key combination" and "Terminal settings" buttons.

I've tried this in both IE and Chrome with the same result.

What am I doing wrong?

Thanks.

like image 773
Karl Heinz Avatar asked Aug 16 '17 21:08

Karl Heinz


People also ask

How do I open web preview?

Use the Open in Browser button on the toolbar to display the web page in a browser. Click the Open in Browser button. You can preview in an installed browser. Internet Explorer is already selected, click the Open button.

How do I enable cloud shell in GCP?

Click Activate Cloud Shell at the top of the Google Cloud console. A Cloud Shell session opens inside a new frame at the bottom of the Google Cloud console and displays a command-line prompt. It can take a few seconds for the session to be initialized.


2 Answers

This is due to a CSS bug. When you have the Google Cloud Platform navigation panel on the left opened, then open a Cloud Shell, the Web Preview button is pushed off the screen.

To fix, simply close the navigation panel by pressing the hamburger button in the top left. (You can reopen the panel, and the Web Preview button will be fixed.)

like image 144
randomhelper Avatar answered Oct 21 '22 17:10

randomhelper


Lo and behold, today the web preview icon appears. I suspect it may have something to do with trying to open the full cloud shell before a connection to the projector has been established.

like image 41
Karl Heinz Avatar answered Oct 21 '22 16:10

Karl Heinz