mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-15 23:41:55 +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,
|
'autoSaveInterval': 1000,
|
||||||
'defaultCode': 'Loading your file...',
|
'defaultCode': 'Loading your file...',
|
||||||
'defaultLanguage': 'text',
|
'defaultLanguage': 'text',
|
||||||
'deployProcessName': 'login'
|
'deployProcessName': 'login',
|
||||||
|
'showDeployButton': true
|
||||||
},
|
},
|
||||||
terminal: {
|
terminal: {
|
||||||
'route': 'shell'
|
'route': 'shell'
|
||||||
|
@ -14,7 +14,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn-group-sm tfw-deploy-btn-group">
|
<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"
|
class="btn tfw-deploy-btn tao-grid-top-center"
|
||||||
(click)="sendCodeIfDirty(); deployCode()"
|
(click)="sendCodeIfDirty(); deployCode()"
|
||||||
[disabled]="deployButtonState === 'DEPLOYING' || deployButtonState === 'DEPLOYED'"
|
[disabled]="deployButtonState === 'DEPLOYING' || deployButtonState === 'DEPLOYED'"
|
||||||
|
@ -35,6 +35,7 @@ export class WebideComponent implements OnInit {
|
|||||||
files: string[];
|
files: string[];
|
||||||
codeState = 'SAVED';
|
codeState = 'SAVED';
|
||||||
deployButtonState = 'DEPLOYED';
|
deployButtonState = 'DEPLOYED';
|
||||||
|
showDeployButton: boolean = config.webide.showDeployButton;
|
||||||
autosave = null;
|
autosave = null;
|
||||||
command_handlers = {'reload': this.reloadHandler.bind(this),
|
command_handlers = {'reload': this.reloadHandler.bind(this),
|
||||||
'read': this.readHandler.bind(this),
|
'read': this.readHandler.bind(this),
|
||||||
|
Loading…
Reference in New Issue
Block a user