mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Send Ghost version to migrator tool (#19494)
This commit is contained in:
parent
f88fdfe363
commit
9d7dcc5aff
2 changed files with 7 additions and 1 deletions
|
@ -63,7 +63,8 @@ export default class GhMigrateIframe extends Component {
|
|||
apiUrl: this.migrate.apiUrl,
|
||||
apiToken: theToken,
|
||||
darkMode: this.feature.nightShift,
|
||||
stripe: this.migrate.isStripeConnected
|
||||
stripe: this.migrate.isStripeConnected,
|
||||
ghostVersion: this.migrate.ghostVersion
|
||||
}
|
||||
}, new URL(this.migrate.getIframeURL()).origin);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import Service, {inject as service} from '@ember/service';
|
||||
import config from 'ghost-admin/config/environment';
|
||||
import {SignJWT} from 'jose';
|
||||
import {tracked} from '@glimmer/tracking';
|
||||
|
||||
|
@ -66,6 +67,10 @@ export default class MigrateService extends Service {
|
|||
return (this.settings.stripeConnectAccountId && this.settings.stripeConnectPublishableKey && this.settings.stripeConnectLivemode) ? true : false;
|
||||
}
|
||||
|
||||
get ghostVersion() {
|
||||
return config.APP.version;
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue