mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
core&ui: cache uicontext.domain
This commit is contained in:
1 parent
43fb00e3c7
commit
e39a5fa87f
8 files changed
+71
-10
No files matched your search
@@ -17,7 +17,7 @@ const page = new NamedPage('domain_user', () => {
|
||||
<p>${i18n('Users will have to manually join the domain first before selected roles can be applied.')}</p>
|
||||
<p>${i18n('To join the domain, users can click the "Join Domain" button on "My Domain" page.')}</p>
|
||||
<p>${i18n('Or use the following link:')}</p>
|
||||
<p><a href="/domain/join?target=${UiContext.domain._id}">/domain/join?target=${UiContext.domain._id}</a></p>
|
||||
<p><a href="/domain/join?target=${UiContext.domainId}">/domain/join?target=${UiContext.domainId}</a></p>
|
||||
</div>`,
|
||||
}).open();
|
||||
});
|
||||
@@ -37,7 +37,7 @@ const page = new NamedPage('domain_user', () => {
|
||||
label: 'Role',
|
||||
options: UiContext.roles.filter((i) => !['default', 'guest'].includes(i)),
|
||||
},
|
||||
...((UiContext.canForceJoin && UiContext.domain._id !== 'system') ? {
|
||||
...((UiContext.canForceJoin && UiContext.domainId !== 'system') ? {
|
||||
join: {
|
||||
type: 'checkbox',
|
||||
label: i18n('Mark user as joined using admin privilege'),
|
||||
|
||||
Reference in new issue
Block a user