0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Refined buttons on staff screens

This commit is contained in:
Peter Zimon 2021-02-12 16:55:16 +01:00
parent a792d152da
commit 43708f20fe
3 changed files with 7 additions and 7 deletions

View file

@ -4,7 +4,7 @@
{{!-- Do not show Invite user button to authors --}}
{{#unless this.currentUser.isAuthorOrContributor}}
<section class="view-actions">
<button class="gh-btn gh-btn-green" {{action "toggleInviteUserModal"}} ><span>Invite people</span></button>
<button class="gh-btn gh-btn-primary" {{action "toggleInviteUserModal"}} ><span>Invite people</span></button>
</section>
{{/unless}}
</GhCanvasHeader>

View file

@ -65,7 +65,7 @@
</span>
{{/if}}
<GhTaskButton @class="gh-btn gh-btn-blue gh-btn-icon" @task={{this.save}} data-test-save-button={{true}} />
<GhTaskButton @class="gh-btn gh-btn-primary gh-btn-icon" @task={{this.save}} data-test-save-button={{true}} />
{{#if this.showDeleteUserModal}}
<GhFullscreenModal @modal="delete-user"

View file

@ -147,7 +147,7 @@ describe('Acceptance: Staff', function () {
// invite user button exists
expect(
find('.view-actions .gh-btn-green'),
find('.view-actions .gh-btn-primary'),
'invite people button'
).to.exist;
@ -182,7 +182,7 @@ describe('Acceptance: Staff', function () {
).to.equal(0);
// click the invite people button
await click('.view-actions .gh-btn-green');
await click('.view-actions .gh-btn-primary');
let roleOptions = findAll('.fullscreen-modal select[name="role"] option');
@ -257,7 +257,7 @@ describe('Acceptance: Staff', function () {
).to.equal(2);
// submit new invite with different role
await click('.view-actions .gh-btn-green');
await click('.view-actions .gh-btn-primary');
await fillIn('.fullscreen-modal input[name="email"]', 'invite2@example.com');
await fillIn('.fullscreen-modal select[name="role"]', '2');
await click('.fullscreen-modal .gh-btn-green');
@ -280,7 +280,7 @@ describe('Acceptance: Staff', function () {
).to.equal('Editor');
// submit invite form with existing user
await click('.view-actions .gh-btn-green');
await click('.view-actions .gh-btn-primary');
await fillIn('.fullscreen-modal input[name="email"]', 'admin@example.com');
await click('.fullscreen-modal .gh-btn-green');
@ -333,7 +333,7 @@ describe('Acceptance: Staff', function () {
).to.equal('invite1@example.com');
// add another invite to test ordering on resend
await click('.view-actions .gh-btn-green');
await click('.view-actions .gh-btn-primary');
await fillIn('.fullscreen-modal input[name="email"]', 'invite3@example.com');
await click('.fullscreen-modal .gh-btn-green');