added deploy entry on welocme page (#5871)

* added deploy entry on welocme page

* deploy section on welcome page

* remove docker deploy

* remove deploy docker entry for now
This commit is contained in:
Maddy
2019-07-08 16:44:33 -07:00
committed by Alan Ren
parent dccb79d8e8
commit dac3075fdd

View File

@@ -5,10 +5,18 @@
import { escape } from 'vs/base/common/strings';
import { localize } from 'vs/nls';
import product from 'vs/platform/product/node/product';
export function used() {
}
function showDeploySection(): boolean {
// only show the deploy section for insider build and dev environment for now until the feature is stable
// tracking issue: https://github.com/microsoft/azuredatastudio/issues/5987
return product.quality !== 'stable';
}
export default () => `
<div class="welcomePageContainer">
<div class="welcomePage">
@@ -28,6 +36,14 @@ export default () => `
<li class="windows-only linux-only"><a href="command:workbench.action.files.openFile">${escape(localize('welcomePage.openFileLinuxPC', "Open file"))}</a></li>
</ul>
</div>
<div class="section deploy" style="display:${showDeploySection() ? 'block' : 'none'}">
<h2 class="caption">${escape(localize('welcomePage.deploy', "Deploy"))}</h2>
<ul>
<!--<li><a href="command:azdata.resource.sql-image.deploy">${escape(localize('welcomePage.deploy-image', "Deploy SQL Server on Docker…"))}</a></li>-->
<li><a href="command:azdata.resource.sql-bdc.deploy">${escape(localize('welcomePage.deploy-bdc', "Deploy SQL Server big data cluster…"))}</a></li>
<li><a href="command:azdata.resource.deploy">${escape(localize('welcomePage.MoreOptions', "More…"))}</a></li>
</ul>
</div>
<div class="section recent">
<h2 class="caption">${escape(localize('welcomePage.recent', "Recent"))}</h2>
<ul class="list">