Add function for info texts (#43)

* Add function for info texts
* Add missing text if no HDD/SSD sensors found.
This commit is contained in:
eremem authored and GitHub committed 2024-05-25 15:09:10 +02:00
1 parent 9198ffe6cd
commit cd9b2fb4c8
1 file changed
+8 -4
+8 -4
View File
@@ -38,8 +38,12 @@ function msgb {
echo -e "\e[1m$1\e[0m"
}
function info {
echo -e "\e[0;32m[info] $1\e[0m"
}
function warn {
echo -e "\e[0;33m[warning] $1\e[0m"
echo -e "\e[0;93m[warning] $1\e[0m"
}
function err {
@@ -668,9 +672,9 @@ Ext.define('PVE.mod.TempHelper', {\n\
restart_proxy
msg "Installation completed"
msg "Installation completed."
msg "Clear the browser cache to ensure all changes are visualized."
info "Clear the browser cache to ensure all changes are visualized."
else
warn "Sensor display items already added to the summary panel in \"$pvemanagerlibjs\"."
fi
@@ -737,4 +741,4 @@ done
# If no arguments were provided or all arguments have been processed, print the usage message
if [[ $executed -eq 0 ]]; then
usage
fi
fi