diff --git a/app/home/controller.ts b/app/home/controller.ts index 3d70a61da..2ad631c92 100644 --- a/app/home/controller.ts +++ b/app/home/controller.ts @@ -18,9 +18,16 @@ const { export default class Home extends Controller { @service features!: Features; + queryParams = [{ + loginNotAvailable: { + as: 'login_not_available', + }, + }]; + organization: string = organization; brand: string = longBrand; useSimplePage: boolean = simplePage; + loginNotAvailable: boolean = false; get heroStyle(): string { return simplePage ? 'height: 600px !important;' : 'min-height: auto;'; diff --git a/app/home/template.hbs b/app/home/template.hbs index f8e0bc7b2..ddb0b5773 100644 --- a/app/home/template.hbs +++ b/app/home/template.hbs @@ -1,3 +1,12 @@
+ {{#if this.loginNotAvailable}} + + {{t 'banners.login_availability.error'}} + + {{/if}}
diff --git a/translations/en-us.yml b/translations/en-us.yml index a9be0d475..ae97a57ce 100644 --- a/translations/en-us.yml +++ b/translations/en-us.yml @@ -247,6 +247,8 @@ banners: view_only: warning: 'You are viewing GakuNin RDM through a view-only link, which may limit the data you have permission to see.' view_normally: 'Leave this view' + login_availability: + error: 'Login availability is not available.' move_to_project: create_new_project: 'Create new public project' connect_to_existing: 'Connect file to existing GakuNin RDM project' diff --git a/translations/ja.yml b/translations/ja.yml index adc41a122..328a7c40e 100644 --- a/translations/ja.yml +++ b/translations/ja.yml @@ -247,6 +247,8 @@ banners: view_only: warning: 'GakuNin RDMを表示専用リンクから表示しているため、表示する権限があるデータが制限される場合があります。' view_normally: このページを離れます。 + login_availability: + error: 'ログインできません。' move_to_project: create_new_project: 新規の公開プロジェクトを作成 connect_to_existing: '既存のGakuNin RDMプロジェクトへファイルを接続する'