Skip to content

Commit 6b78738

Browse files
committed
feat: move language select under login button and add ability to set its order in array of injections
1 parent 870ef44 commit 6b78738

4 files changed

Lines changed: 2829 additions & 125 deletions

File tree

index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ export default class I18nPlugin extends AdminForthPlugin {
293293
brandSlug: adminforth.config.customization.brandNameSlug,
294294
pluginInstanceId: this.pluginInstanceId,
295295
primaryLanguage: this.primaryLanguage,
296+
afOrder: this.options.loginPageLanguageSelectorOrder || 0,
296297
supportedLanguages: this.options.supportedLanguages.map(lang => (
297298
{
298299
code: lang,
@@ -303,7 +304,7 @@ export default class I18nPlugin extends AdminForthPlugin {
303304
};
304305
// add underLogin component
305306
if (!this.externalAppOnly) {
306-
(adminforth.config.customization.loginPageInjections.underInputs).push({
307+
(adminforth.config.customization.loginPageInjections.underLoginButton as Array<any>).push({
307308
file: this.componentPath('LanguageUnderLogin.vue'),
308309
meta: compMeta
309310
});

0 commit comments

Comments
 (0)