Update 'deploy.yaml'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-01-19 14:34:47 +00:00
parent 9d9c34c137
commit 6d7de4ec1c

View File

@@ -51,45 +51,31 @@ areas:
title: DNS suffix title: DNS suffix
placeholder: example.org placeholder: example.org
# Again use the grow (css flex-grow) layout property to lay out the buttons. - id: warning
- id: back # Create a back button that will link back to the brands page without making any changes. type: Alert
type: Button
layout:
grow: 1 # Because the button has a grow of 1, it will expand to take up available space.
properties: properties:
title: Back message: When pressing 'Start Deployment' the physical device should be booted over LAN (PXE).
icon: ArrowLeftOutlined type: warning
type: default # Change the type of the button to default.
block: true # Makes the button fill the maximum defined width instead of only the with of its contents (title and icon).
events:
onClick:
- id: link_to_brands # When clicked, link back to the brands page.
type: Link
params:
pageId: brands
- id: reset_button - id: reset_button
type: Button type: Button
layout: layout:
grow: 1 # Because the button has a grow of 1, it will expand to take up available space. grow: 1
properties: properties:
title: Reset title: Reset
type: default
Icon: ReloadOutlined Icon: ReloadOutlined
block: true
actions: actions:
onClick: onClick:
- id: reset - id: reset
type: reset() type: reset()
- id: update_brand - id: start_deployment
type: Button type: Button
layout: layout:
grow: 3 # Because the button has a grow of 3, which is 3 times as large as the grow: 3
# grow value of the back and delete buttons, it will expand "3 times bigger",
# and occupy more space in the row. It will be laid out in the same row as the other
# buttons, unless there is not enough space for all three buttons, in which case it will
# drop down to the next row by following css flex layout behavior.
properties: properties:
title: Save title: Start Deployment
icon: SaveOutlined icon: RocketOutlined
block: true block: true
requests: requests:
- id: update_brand - id: update_brand
@@ -116,28 +102,3 @@ areas:
type: Link type: Link
params: params:
pageId: brands pageId: brands
- id: delete_modal
type: ConfirmModal
properties:
content: Are you sure you want to delete this brand? # The text inside the modal.
okText: Yes # Change the default text of the ok button to 'Yes'.
okButton:
type: danger # Change the default type of the ok button to danger.
cancelText: No # Change the default text of the cancel button to 'No'.
requests:
- id: delete_brand
type: MongoDBDeleteOne # MongoDb Delete One request to delete the brand's document from the collection.
connectionId: brands
properties:
filter:
_id:
_state: _id # Filter the document that matches the document's _id.
events:
onOk:
- id: delete_brand # Call the delete_brand request.
type: Request
params: delete_brand
- id: link_to_brands
type: Link
params:
pageId: brands