Merge branch 'main' into redirect-to-idx
This commit is contained in:
2 files changed
+5
-2
No files matched your search
@@ -57,7 +57,11 @@ export default class ScopesScopeGroupsRoute extends Route {
|
||||
)
|
||||
async save(group) {
|
||||
await group.save();
|
||||
await this.transitionTo('scopes.scope.groups.group', group);
|
||||
if (this.can.can('read model', group)) {
|
||||
await this.transitionTo('scopes.scope.groups.group', group);
|
||||
} else {
|
||||
await this.transitionTo('scopes.scope.groups');
|
||||
}
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,6 @@
|
||||
as |message|
|
||||
>
|
||||
<message.description>
|
||||
{{t 'resources.group.description'}}
|
||||
{{#if (can 'list collection' this.scope collection='groups')}}
|
||||
{{! can list (at least): show default welcome message}}
|
||||
{{t 'resources.group.description'}}
|
||||
|
||||
Reference in new issue
Block a user