Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use drivers for display names, add display name extender #2174

Merged
merged 12 commits into from
May 19, 2020
Merged
Prev Previous commit
Next Next commit
Fix frontend saving numerical index vs identifier of selected driver
  • Loading branch information
askvortsov1 committed May 18, 2020
commit 9e3ec3094ccae7d37eb775859cea3d326e3c5ff8
2 changes: 1 addition & 1 deletion js/src/admin/components/BasicsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class BasicsPage extends Page {
this.displayNameOptions = {};
const displayNameDrivers = app.data.displayNameDrivers;
for (const i in displayNameDrivers) {
this.displayNameOptions[i] = `${displayNameDrivers[i]} (${i})`;
this.displayNameOptions[displayNameDrivers[i]] = `${displayNameDrivers[i]} (${i})`;
}

if (!this.values.display_name_driver() && displayNameDrivers.includes('username')) this.values.display_name_driver('username');
Expand Down