mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-28 15:19:36 +02:00
Support for app categories in docker integration (#8)
* initial support for app categories in docker integration * fixed readme examples for docker integration and some fixes to integration * fix obtaining category from container label * hide edit actions for default categories (such as Docker)
This commit is contained in:
parent
14fbc7e221
commit
ccdb477ac4
8 changed files with 53 additions and 12 deletions
|
@ -98,7 +98,7 @@ const AppForm = (props: ComponentProps): JSX.Element => {
|
|||
if (appData.categoryId === -1) {
|
||||
props.createNotification({
|
||||
title: 'Error',
|
||||
message: 'Please select category'
|
||||
message: 'Please select a category'
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -162,7 +162,7 @@ const AppTable = (props: ComponentProps): JSX.Element => {
|
|||
style={style}
|
||||
>
|
||||
<td>{category.name}</td>
|
||||
{!snapshot.isDragging && (
|
||||
{!snapshot.isDragging && category.id >= 0 && (
|
||||
<td className={classes.TableActions}>
|
||||
<div
|
||||
className={classes.TableAction}
|
||||
|
|
|
@ -94,7 +94,7 @@ const Apps = (props: ComponentProps): JSX.Element => {
|
|||
};
|
||||
|
||||
const instanceOfCategory = (object: any): object is Category => {
|
||||
return "apps" in object;
|
||||
return !("categoryId" in object);
|
||||
};
|
||||
|
||||
const goToUpdateMode = (data: Category | App): void => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue