mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Updated Admin meta title to Ghost Admin – [site title]
(#19023)
No ref - In order to make it easier to distinguish between Admin and site in browser tabs, we've updated the meta title to include `Ghost Admin` in the title.
This commit is contained in:
parent
e3cdc24d6b
commit
e9e2b678c7
5 changed files with 1 additions and 24 deletions
|
@ -6,7 +6,6 @@ import {
|
|||
} from '@tryghost/color-utils';
|
||||
import {action, get} from '@ember/object';
|
||||
import {inject} from 'ghost-admin/decorators/inject';
|
||||
import {isEmpty} from '@ember/utils';
|
||||
import {tracked} from '@glimmer/tracking';
|
||||
|
||||
function collectMetadataClasses(transition, prop) {
|
||||
|
@ -147,11 +146,7 @@ export default class UiService extends Service {
|
|||
|
||||
let blogTitle = this.config.blogTitle;
|
||||
|
||||
if (!isEmpty(tokens)) {
|
||||
window.document.title = `${tokens.join(' - ')} - ${blogTitle}`;
|
||||
} else {
|
||||
window.document.title = blogTitle;
|
||||
}
|
||||
window.document.title = `Ghost Admin - ${blogTitle}`;
|
||||
}
|
||||
|
||||
@action
|
||||
|
|
|
@ -49,9 +49,6 @@ describe('Acceptance: Members', function () {
|
|||
// lands on correct page
|
||||
expect(currentURL(), 'currentURL').to.equal('/members');
|
||||
|
||||
// it has correct page title
|
||||
expect(document.title, 'page title').to.equal('Members - Test Blog');
|
||||
|
||||
// it lists all members
|
||||
expect(findAll('[data-test-list="members-list-item"]').length, 'members list count')
|
||||
.to.equal(2);
|
||||
|
@ -105,9 +102,6 @@ describe('Acceptance: Members', function () {
|
|||
// lands on correct page
|
||||
expect(currentURL(), 'currentURL').to.equal('/members');
|
||||
|
||||
// it has correct page title
|
||||
expect(document.title, 'page title').to.equal('Members - Test Blog');
|
||||
|
||||
// it lists all members
|
||||
expect(findAll('[data-test-list="members-list-item"]').length, 'members list count')
|
||||
.to.equal(1);
|
||||
|
|
|
@ -56,9 +56,6 @@ describe('Acceptance: Offers', function () {
|
|||
// lands on correct page
|
||||
expect(currentURL(), 'currentURL').to.equal('/offers');
|
||||
|
||||
// it has correct page title
|
||||
expect(document.title, 'page title').to.equal('Offers - Test Blog');
|
||||
|
||||
// it highlights active state in nav menu
|
||||
expect(
|
||||
find('[data-test-nav="offers"]'),
|
||||
|
|
|
@ -102,9 +102,6 @@
|
|||
// // doesn't do any redirecting
|
||||
// expect(currentURL(), 'currentURL').to.equal('/settings/staff');
|
||||
|
||||
// // it has correct page title
|
||||
// expect(document.title, 'page title').to.equal('Staff - Test Blog');
|
||||
|
||||
// // it shows active users in active section
|
||||
// expect(
|
||||
// findAll('[data-test-active-users] [data-test-user-id]').length,
|
||||
|
@ -134,9 +131,6 @@
|
|||
// // url is correct
|
||||
// expect(currentURL(), 'url after clicking user').to.equal(`/settings/staff/${user2.slug}`);
|
||||
|
||||
// // title is correct
|
||||
// expect(document.title, 'title after clicking user').to.equal('Staff - User - Test Blog');
|
||||
|
||||
// // view title should exist and be linkable and active
|
||||
// expect(
|
||||
// find('[data-test-breadcrumb] a[href="/ghost/settings/staff"]').classList.contains('active'),
|
||||
|
|
|
@ -59,9 +59,6 @@ describe('Acceptance: Tags', function () {
|
|||
// it loads tags list
|
||||
expect(currentURL(), 'currentURL').to.equal('tags');
|
||||
|
||||
// it has correct page title
|
||||
expect(document.title, 'page title').to.equal('Tags - Test Blog');
|
||||
|
||||
// it highlights nav menu
|
||||
expect(find('[data-test-nav="tags"]'), 'highlights nav menu item')
|
||||
.to.have.class('active');
|
||||
|
|
Loading…
Add table
Reference in a new issue