mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 14:59:41 +02:00
fix(home): fix home page filters EE-2972 (#6789)
This commit is contained in:
parent
5b77edb76d
commit
bebee78152
13 changed files with 516 additions and 167 deletions
11
api/internal/utils/utils.go
Normal file
11
api/internal/utils/utils.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package utils
|
||||
|
||||
// Contains returns true if the given int is contained in the given slice of int.
|
||||
func Contains(s []int, e int) bool {
|
||||
for _, a := range s {
|
||||
if a == e {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue