Wipe addons/: full reset for clean re-upload
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import {registry} from "@web/core/registry";
|
||||
import {StateSelectionField} from "@web/views/fields/state_selection/state_selection_field";
|
||||
|
||||
import {STATUS_COLORS, STATUS_COLOR_PREFIX} from "../../utils/server_utils.esm";
|
||||
|
||||
export class ServerStatusField extends StateSelectionField {
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
setup() {
|
||||
super.setup();
|
||||
this.colorPrefix = STATUS_COLOR_PREFIX;
|
||||
this.colors = STATUS_COLORS;
|
||||
}
|
||||
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
get options() {
|
||||
return [[false, "Undefined"], ...super.options];
|
||||
}
|
||||
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
get showLabel() {
|
||||
return !this.props.hideLabel;
|
||||
}
|
||||
}
|
||||
|
||||
registry.category("fields").add("server_status", ServerStatusField);
|
||||
@@ -1,33 +0,0 @@
|
||||
.o_server_status_bubble {
|
||||
@extend .o_status;
|
||||
|
||||
&.o_color_server_status_bubble_info {
|
||||
background-color: $o-info;
|
||||
}
|
||||
&.o_color_server_status_bubble_success {
|
||||
background-color: $o-success;
|
||||
}
|
||||
&.o_color_server_status_bubble_danger {
|
||||
background-color: $o-danger;
|
||||
}
|
||||
&.o_color_server_status_bubble_warning {
|
||||
background-color: $o-warning;
|
||||
}
|
||||
}
|
||||
.o_field_server_status {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 4px 8px;
|
||||
margin: 0px 16px;
|
||||
border-radius: 5px;
|
||||
border: 1px solid #e5e5e5;
|
||||
width: fit-content !important;
|
||||
|
||||
.o_status_label {
|
||||
color: #4c4c4c;
|
||||
font-size: 14px;
|
||||
margin-left: 0.5rem !important;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user