From 829725f84005a5d037da1093dcd9d55cccb60c79 Mon Sep 17 00:00:00 2001 From: Huan Phan Date: Tue, 28 May 2024 15:15:22 +0700 Subject: [PATCH] =?UTF-8?q?refs=202.1.1.=E8=AA=8D=E8=A8=BC=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E3=81=AB=E3=82=88=E3=82=8B=E3=83=AD=E3=82=B0=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E3=82=A2=E3=82=AF=E3=82=BB=E3=82=B9=E5=88=B6=E5=BE=A1?= =?UTF-8?q?:=20Add=20source=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/home/controller.ts | 7 +++++++ app/home/template.hbs | 9 +++++++++ translations/en-us.yml | 2 ++ translations/ja.yml | 2 ++ 4 files changed, 20 insertions(+) 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プロジェクトへファイルを接続する'