mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-15 20:51:57 +00:00
Make webide deploy button optional
This commit is contained in:
parent
0682e53511
commit
7d145e95ae
@ -8,7 +8,8 @@ export const config = {
|
||||
'autoSaveInterval': 1000,
|
||||
'defaultCode': 'Loading your file...',
|
||||
'defaultLanguage': 'text',
|
||||
'deployProcessName': 'login'
|
||||
'deployProcessName': 'login',
|
||||
'showDeployButton': true
|
||||
},
|
||||
terminal: {
|
||||
'route': 'shell'
|
||||
|
@ -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'"
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user