-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make addon configurable via config service (#269)
* feat: add option "emailAsUsername" * feat: add config option to hide "additional" user fields * feat: add option to hide entries in main nav * feat: add config option for optional user fields * fix: make scope description optional
- Loading branch information
Showing
18 changed files
with
279 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<li class="uk-child-width-1-1 {{if this.isActive 'uk-active'}}" ...attributes> | ||
<LinkTo @route={{@route}}> | ||
{{yield}} | ||
</LinkTo> | ||
</li> | ||
{{#if this.isVisible}} | ||
<li class="uk-child-width-1-1 {{if this.isActive 'uk-active'}}" ...attributes> | ||
<LinkTo @route={{@route}}> | ||
{{yield}} | ||
</LinkTo> | ||
</li> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
import { inject as service } from "@ember/service"; | ||
|
||
import PaginationController from "ember-emeis/-private/controllers/pagination"; | ||
|
||
export default class UsersIndexController extends PaginationController {} | ||
export default class UsersIndexController extends PaginationController { | ||
@service emeisOptions; | ||
|
||
get emailAsUsername() { | ||
return this.emeisOptions.emailAsUsername; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Service from "@ember/service"; | ||
|
||
export default class EmeisOptionsService extends Service {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.