commit 97f4b65116055265667e85636f27f79a02fb03d7
parent cc02ab3992055ee43c904231e8ac96f9a783437e
Author: Sebastian <sebasjm@gmail.com>
Date: Tue, 3 Aug 2021 12:53:23 -0300
use management api when updating instance details from default instance credentials
Diffstat:
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/packages/frontend/src/paths/admin/list/TableDeleted.tsx b/packages/frontend/src/paths/admin/list/TableDeleted.tsx
@@ -67,8 +67,7 @@ function Table({ instances, onPurge, setInstanceName }: TableProps): VNode {
<table class="table is-fullwidth is-striped is-hoverable is-fullwidth">
<thead>
<tr>
- <th class="is-checkbox-cell">
- </th>
+ <th class="is-checkbox-cell" />
<th><Translate>ID</Translate></th>
<th><Translate>Name</Translate></th>
<th />
@@ -77,8 +76,7 @@ function Table({ instances, onPurge, setInstanceName }: TableProps): VNode {
<tbody>
{instances.map(i => {
return <tr key={i.id}>
- <td class="is-checkbox-cell">
- </td>
+ <td class="is-checkbox-cell" />
<td><a href={`#/orders?instance=${i.id}`} onClick={(e) => {
setInstanceName(i.id);
}}>{i.id}</a></td>
diff --git a/packages/frontend/src/paths/admin/list/View.tsx b/packages/frontend/src/paths/admin/list/View.tsx
@@ -31,7 +31,7 @@ interface Props {
onDelete: (id: MerchantBackend.Instances.Instance) => void;
onPurge: (id: MerchantBackend.Instances.Instance) => void;
selected?: boolean;
- setInstanceName: (s:string) => void;
+ setInstanceName: (s: string) => void;
}
export function View({ instances, onCreate, onDelete, onPurge, onUpdate, setInstanceName, selected }: Props): VNode {
@@ -44,8 +44,8 @@ export function View({ instances, onCreate, onDelete, onPurge, onUpdate, setInst
</section>
{deletedInstances.length > 0 && <section class="section is-main-section">
- <CardTableDeleted instances={deletedInstances} onPurge={onPurge} setInstanceName={setInstanceName}/>
- </section> }
+ <CardTableDeleted instances={deletedInstances} onPurge={onPurge} setInstanceName={setInstanceName} />
+ </section>}
</div >
}
\ No newline at end of file