mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 14:22:07 +03:00
656a20272a
no issue - after un-nesting the built-in integration routes they no longer had the automatic redirect for non-admins - added our non-admin redirect behaviour to all of the integration routes - added our non-admin redirect behaviour to the Zapier route which didn't even have an authenticated redirect previously - added acceptance test for Zapier route so verify the new behaviour - wrapped the Zapier widget `<script>` tag in an "is testing" conditional so that the external script doesn't get loaded during tests
15 lines
391 B
JavaScript
15 lines
391 B
JavaScript
/* eslint-disable ghost/ember/alias-model-in-controller */
|
|
import Controller from '@ember/controller';
|
|
import config from 'ghost-admin/config/environment';
|
|
|
|
export default Controller.extend({
|
|
isTesting: undefined,
|
|
|
|
init() {
|
|
this._super(...arguments);
|
|
if (this.isTesting === undefined) {
|
|
this.isTesting = config.environment === 'test';
|
|
}
|
|
}
|
|
});
|