mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
local actions = {}
|
||||
actions["restart"] = {}
|
||||
|
||||
actions["restart"] = {
|
||||
["iconClass"] = "fa fa-fw fa-redo"
|
||||
}
|
||||
|
||||
return actions
|
||||
|
||||
@@ -1,18 +1,30 @@
|
||||
local actions = {}
|
||||
actions["restart"] = {}
|
||||
|
||||
|
||||
actions["restart"] = {
|
||||
["iconClass"] = "fa fa-fw fa-redo"
|
||||
}
|
||||
|
||||
local paused = false
|
||||
if obj.spec.paused ~= nil then
|
||||
paused = obj.spec.paused
|
||||
actions["pause"] = {paused}
|
||||
actions["pause"] = {
|
||||
["disabled"] = paused,
|
||||
["iconClass"] = "fa fa-fw fa-pause-circle"
|
||||
}
|
||||
end
|
||||
actions["resume"] = {["disabled"] = not(paused)}
|
||||
|
||||
|
||||
actions["resume"] = {
|
||||
["disabled"] = not(paused),
|
||||
["iconClass"] = "fa fa-fw fa-play-circle"
|
||||
}
|
||||
|
||||
actions["scale"] = {
|
||||
["iconClass"] = "fa fa-fw fa-plus-circle",
|
||||
["params"] = {
|
||||
{
|
||||
["name"] = "replicas"
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
return actions
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
local actions = {}
|
||||
actions["restart"] = {}
|
||||
|
||||
|
||||
actions["restart"] = {
|
||||
["iconClass"] = "fa fa-fw fa-redo"
|
||||
}
|
||||
|
||||
actions["scale"] = {
|
||||
["params"] = {
|
||||
["iconClass"] = "fa fa-fw fa-plus-circle",
|
||||
["params"] = {
|
||||
{
|
||||
["name"] = "replicas"
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return actions
|
||||
|
||||
Reference in New Issue
Block a user