Small improvements on Cockpit-Node

This commit is contained in:
Jan Oberhauser
2020-04-06 10:03:49 +02:00
parent 30e5960248
commit 7e17486383
6 changed files with 84 additions and 58 deletions

View File

@@ -8,18 +8,18 @@ export const singletonOperations = [
displayOptions: {
show: {
resource: [
'singletons',
'singleton',
],
},
},
options: [
{
name: 'Get All',
value: 'getAll',
description: 'Get all singletons',
name: 'Get',
value: 'get',
description: 'Gets a singleton',
},
],
default: 'getAll',
default: 'get',
description: 'The operation to perform.',
}
] as INodeProperties[];
@@ -36,11 +36,11 @@ export const singletonFields = [
displayOptions: {
show: {
resource: [
'singletons',
'singleton',
],
},
},
required: true,
description: 'Name of the singleton to operate on.'
},
] as INodeProperties[];
] as INodeProperties[];