diff --git a/app/components/join-section.hbs b/app/components/join-section.hbs index 5edcbc10..5dfaff7b 100644 --- a/app/components/join-section.hbs +++ b/app/components/join-section.hbs @@ -34,8 +34,20 @@ @route='index' class='join__link join__link--new' @disabled={{true}} - >Join the Squad + > + Join the Squad + + + {{!-- NOTE: This has the new code on feature flag off --}} + {{!-- If something goes wrong, we can enable a flag to restore previous behaviour --}} + {{!-- TODO: Clean up by Jan, 2025 --}}
- We're currently not accepting new applications. Please come back later.
+ {{#if this.isDevMode}} + We're currently not accepting new applications. Please come back later. + {{else}} +We're currently not accepting new applications. Please come back later.
+ +
+ {{!-- NOTE: This has the new code on feature flag off. --}}
+ {{!-- If something goes wrong, we can enable a flag to restore previous behaviour --}}
+ {{!-- TODO: Clean up by Jan, 2025 --}}
+ {{#if this.isDevMode}}
+ We're currently not accepting new applications. Please come back later.
+ {{else}}
+
Be the first to know when applications open!
{{/if}} diff --git a/tests/integration/components/notice-for-joining-test.js b/tests/integration/components/notice-for-joining-test.js new file mode 100644 index 00000000..995417f2 --- /dev/null +++ b/tests/integration/components/notice-for-joining-test.js @@ -0,0 +1,14 @@ +import { module, test } from 'qunit'; +import { setupRenderingTest } from 'website-www/tests/helpers'; +import { render } from '@ember/test-helpers'; +import { hbs } from 'ember-cli-htmlbars'; + +module('Integration | Component | notice-for-joining', function (hooks) { + setupRenderingTest(hooks); + + test('it renders', async function (assert) { + await render(hbs`