Skip to content

Commit

Permalink
Merge pull request #19 from reetchow/staging
Browse files Browse the repository at this point in the history
disabled run button if input empty and readonly textarea
  • Loading branch information
1000TurquoisePogs authored May 29, 2019
2 parents 4cd6c1d + fafca20 commit cf71986
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions webClient/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@
<input placeholder="Message"
i18n-placeholder="message|indicates that the user will enter a message@@appComponentMessage" [(ngModel)]="helloText"
(keyup.enter)="sayHello()"/>
<zlux-button (click)="sayHello()"
<zlux-button (click)="sayHello()" [disabled]="helloText === ''"
i18n="run|Run the application@@appComponentRun">Run</zlux-button>
</div>
<div>
<label i18n="response|the area where the response from the server will appear@@appComponentResponse">Response</label>
<textarea class="server-response" placeholder="Response"
<textarea class="server-response" placeholder="Response" readonly
i18n-placeholder="@@appComponentResponse" >{{serverResponseMessage}}</textarea>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion webClient/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class AppComponent {
actionType: string = "Launch";
targetMode: string = "PluginCreate";
items = ['a', 'b', 'c', 'd']
helloText: string;
helloText = '';
serverResponseMessage: string;

constructor(
Expand Down

0 comments on commit cf71986

Please sign in to comment.