disable prompt-on-launch when input source is set

This commit is contained in:
Jake McDermott 2019-03-06 18:30:08 -05:00
parent e0d61cfb8e
commit e14f17687c
No known key found for this signature in database
GPG Key ID: 9A6F084352C3A0B7
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
<div ng-if="state._displayPromptOnLaunch" class="at-InputLabel-checkbox pull-right">
<label class="at-InputLabel-checkboxLabel">
<input type="checkbox"
ng-disabled="state.asTag"
ng-model="state._promptOnLaunch"
ng-change="vm.togglePromptOnLaunch()" />
<p>{{:: vm.strings.get('label.PROMPT_ON_LAUNCH') }}</p>

View File

@ -27,7 +27,7 @@
ng-class="{ 'at-Input--rejected': state._rejected }"
ng-attr-maxlength="{{ state.max_length || undefined }}"
ng-attr-tabindex="{{ tab || undefined }}"
ng-attr-placeholder="{{state._placeholder || undefined }}"
ng-attr-placeholder="{{ state._promptOnLaunch ? '' : state._placeholder || undefined }}"
ng-change="vm.check()"
ng-disabled="state._disabled || form.disabled"
/>