ソースを参照

Merge pull request #11515 from surajshetty3416/fix-desk-ux

fix(desk): Mute badge if the count is zero
version-14
Shivam Mishra 4年前
committed by GitHub
コミット
9b9e00147f
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更4行の追加5行の削除
  1. +4
    -5
      frappe/public/js/frappe/widgets/shortcut_widget.js

+ 4
- 5
frappe/public/js/frappe/widgets/shortcut_widget.js ファイルの表示

@@ -89,11 +89,10 @@ export default class ShortcutWidget extends Widget {
const label = get_label();
const buttons = $(`<div class="small pill">${label}</div>`);
if (this.color) {
buttons.css("background-color", this.color);
buttons.css(
"color",
frappe.ui.color.get_contrast_color(this.color)
);
let bg_color = count ? this.color: '#EEEEEE';
let text_color = count ? frappe.ui.color.get_contrast_color(bg_color): '#8D99A6';
buttons.css("background-color", bg_color);
buttons.css("color", text_color);
}

buttons.appendTo(this.action_area);


読み込み中…
キャンセル
保存