Fix take ownership of organizations
Take ownership code got moved into its own directive in Oct, but we forgot we have a call in superuser panel for orgs as well. Fix this, and simplify the call sites
This commit is contained in:
parent
789e35668c
commit
1d3af2b0bd
4 changed files with 32 additions and 12 deletions
|
@ -172,7 +172,7 @@
|
|||
<span class="cor-option" option-click="askDeleteOrganization(current_org)">
|
||||
<i class="fa fa-times"></i> Delete Organization
|
||||
</span>
|
||||
<span class="cor-option" option-click="askTakeOwnership(current_org, true)">
|
||||
<span class="cor-option" option-click="askTakeOwnership(current_org)">
|
||||
<i class="fa fa-bolt"></i> Take Ownership
|
||||
</span>
|
||||
</span>
|
||||
|
@ -211,6 +211,13 @@
|
|||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<div class="cor-confirm-dialog take-ownership-dialog"
|
||||
dialog-context="takeOwnershipInfo"
|
||||
dialog-action="takeOwnership(info, callback)"
|
||||
dialog-title="Take Ownership"
|
||||
dialog-action-title="Take Ownership">
|
||||
Are you sure you want to take ownership of organization <span class="avatar" data="takeOwnershipInfo.entity.avatar" size="16"></span> {{ takeOwnershipInfo.entity.name }}?</span>
|
||||
</div>
|
||||
|
||||
</div> <!-- /page-content -->
|
||||
</div>
|
||||
|
|
Reference in a new issue