mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'master' into develop-newgrid-row-design2
This commit is contained in:
@@ -91,20 +91,25 @@ export class OrgUsersCtrl {
|
||||
evt.stopPropagation();
|
||||
}
|
||||
|
||||
openAddUsersView() {
|
||||
var modalScope = this.$scope.$new();
|
||||
modalScope.invitesSent = this.get.bind(this);
|
||||
getInviteUrl(invite) {
|
||||
return invite.url;
|
||||
}
|
||||
|
||||
var src = config.disableLoginForm
|
||||
? 'public/app/features/org/partials/add_user.html'
|
||||
: 'public/app/features/org/partials/invite.html';
|
||||
openAddUsersView() {
|
||||
var modalScope = this.$scope.$new();
|
||||
modalScope.invitesSent = this.get.bind(this);
|
||||
|
||||
var src = config.disableLoginForm
|
||||
? 'public/app/features/org/partials/add_user.html'
|
||||
: 'public/app/features/org/partials/invite.html';
|
||||
|
||||
this.$scope.appEvent('show-modal', {
|
||||
src: src,
|
||||
modalClass: 'invite-modal',
|
||||
scope: modalScope
|
||||
});
|
||||
}
|
||||
|
||||
this.$scope.appEvent('show-modal', {
|
||||
src: src,
|
||||
modalClass: 'invite-modal',
|
||||
scope: modalScope
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
coreModule.controller('OrgUsersCtrl', OrgUsersCtrl);
|
||||
|
||||
Reference in New Issue
Block a user