1
0
Fork 0
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:
François Darveau 2021-08-07 12:31:41 -04:00 committed by François Darveau
parent 14fbc7e221
commit ccdb477ac4
8 changed files with 53 additions and 12 deletions

View file

@ -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;
}

View file

@ -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}

View file

@ -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 => {