mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
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:
parent
49b28d4387
commit
49214faf07
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user