Added placeholder to impersonate URL

no issues.
- adds a placeholder value for impersonate URL field to avoid empty field while loading
- disables "Copy link" button until the actual URL is not loaded
This commit is contained in:
Peter Zimon 2020-06-01 10:04:12 +02:00
parent 49b28d4387
commit 49214faf07

View File

@ -25,13 +25,24 @@
@name="member-signin-url"
@disabled={{true}}
@value={{readonly signinUrl}}
@placeholder="{{this.config.blogUrl}}/members/?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
/>
<GhTaskButton
{{#if signinUrl}}
<GhTaskButton
@autoReset={{true}}
@buttonText="Copy link"
@task={{this.copySigninUrl}}
@successText="Link copied"
@class="gh-btn gh-btn-blue gh-btn-icon" />
{{else}}
<GhTaskButton
@autoReset={{true}}
@buttonText="Copy link"
@task={{this.copySigninUrl}}
@successText="Link copied"
@disabled="true"
@class="gh-btn gh-btn-blue gh-btn-icon" />
{{/if}}
</div>
</fieldset>
</div>