Angular/Forms migration: Orgs list (#23821)

* Create new components

* Fix async issues

* Remove comments

* Update public/app/features/admin/AdminOrgsTable.tsx

* Update public/app/features/admin/AdminListOrgsPage.tsx

* Update public/app/features/admin/AdminListOrgsPage.tsx

* Remove angular code

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
This commit is contained in:
Tobias Skarhed
2020-04-27 10:00:17 +02:00
committed by GitHub
parent b09b49fb37
commit d0e23af228
6 changed files with 116 additions and 81 deletions

View File

@@ -1,41 +0,0 @@
<page-header model="navModel"></page-header>
<div class="page-container page-body">
<div class="page-action-bar">
<div class="page-action-bar__spacer"></div>
<a class="page-header__cta btn btn-primary" href="org/new">
New org
</a>
</div>
<table class="filter-table form-inline filter-table--hover">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="org in orgs">
<td class="link-td">
<a href="admin/orgs/edit/{{org.id}}">
{{org.id}}
</a>
</td>
<td class="link-td">
<a href="admin/orgs/edit/{{org.id}}">
{{org.name}}
</a>
</td>
<td class="text-right">
<a ng-click="deleteOrg(org)" class="btn btn-danger btn-small">
<icon name="'times'" size="sm" style="margin-bottom: 0;"></icon>
</a>
</td>
</tr>
</tbody>
</table>
</div>
<footer />