diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-09 09:45:50 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-09 09:45:50 +0300 |
commit | b735d7c92f507fb1fc5f489e6b2c841575082260 (patch) | |
tree | fa562adefd5ef4d8e45c4fe111a79e947c73d677 /src/components | |
parent | e5c217fa45a8c66b6ebf34bfda740e470c34bfab (diff) | |
parent | 0332cf97422e5989f466373ace45fee9babd2fb3 (diff) | |
download | webui-vue-b735d7c92f507fb1fc5f489e6b2c841575082260.tar.xz |
Merge branch 'sila' of git.sila.ru:pub/openbmc/webui-vue into sila
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/_sila/Global/Chart.vue | 22 | ||||
-rw-r--r-- | src/components/_sila/Global/Collapse.vue | 8 |
2 files changed, 24 insertions, 6 deletions
diff --git a/src/components/_sila/Global/Chart.vue b/src/components/_sila/Global/Chart.vue index 0b639252..63f1f0a9 100644 --- a/src/components/_sila/Global/Chart.vue +++ b/src/components/_sila/Global/Chart.vue @@ -363,6 +363,28 @@ export default { }, }); break; + case 'psu-power': + this.categories = this.setCategories(126, 'Вт'); + this.yMax = 125; + this.minTickInterval = 25; + this.plotLines.push({ + color: '#1A3E5B', + dashStyle: 'solid', + value: this.shutdown, + width: 2, + label: { + text: this.$t('chart.thresholdWarning'), + align: 'right', + style: { + fontFamily: 'Inter', + fontSize: '12px', + fontStyle: 'normal', + fontWeight: '400', + lineHeight: '16px', + color: '#0C1C2999', + }, + }, + }); } }, setCategories(count, desc) { diff --git a/src/components/_sila/Global/Collapse.vue b/src/components/_sila/Global/Collapse.vue index da2b74c8..36778571 100644 --- a/src/components/_sila/Global/Collapse.vue +++ b/src/components/_sila/Global/Collapse.vue @@ -10,7 +10,7 @@ {{ title }} <component :is="iconChevronUp" class="icon-expand" /> </b-button> - <b-collapse :id="id" :visible="defaultOpen"> + <b-collapse :id="id" visible> <slot></slot> </b-collapse> </div> @@ -29,14 +29,10 @@ export default { type: String, default: null, }, - defaultOpen: { - type: Boolean, - default: false, - }, }, data() { return { - opened: false, + opened: true, iconChevronUp: iconChevronUp, }; }, |