Make webide deploy button optional

This commit is contained in:
Kristóf Tóth 2018-03-21 16:44:51 +01:00
parent 0682e53511
commit 7d145e95ae
3 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,8 @@ export const config = {
'autoSaveInterval': 1000,
'defaultCode': 'Loading your file...',
'defaultLanguage': 'text',
'deployProcessName': 'login'
'deployProcessName': 'login',
'showDeployButton': true
},
terminal: {
'route': 'shell'

View File

@ -14,7 +14,8 @@
</div>
<div class="btn-group-sm tfw-deploy-btn-group">
<button type="submit"
<button *ngIf="showDeployButton"
type="submit"
class="btn tfw-deploy-btn tao-grid-top-center"
(click)="sendCodeIfDirty(); deployCode()"
[disabled]="deployButtonState === 'DEPLOYING' || deployButtonState === 'DEPLOYED'"

View File

@ -35,6 +35,7 @@ export class WebideComponent implements OnInit {
files: string[];
codeState = 'SAVED';
deployButtonState = 'DEPLOYED';
showDeployButton: boolean = config.webide.showDeployButton;
autosave = null;
command_handlers = {'reload': this.reloadHandler.bind(this),
'read': this.readHandler.bind(this),