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