<commit_before>// Copyright 2019 <NAME> <https://it-projects.info/team/GabbasovDinar>
// License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).

odoo.define("odoo_backup_sh_dropbox.dashboard", function(require) {
    "use strict";

    var Dashboard = require("odoo_backup_sh.dashboard");
    var ajax = require("web.ajax");
    var core = require("web.core");
    var Widget = require("web.Widget");
    var QWeb = core.qweb;

    Dashboard.include({
        click_group_buttons: function(e) {
            var $el = $(e.target);
            var service = $el.data("service");
            if ($el.data("service") === "dropbox") {
                this.set_active_button($el);
                this.set_service(service);
                this.render_remote_storage_usage_graph(
                    this.services_storage_usage_graph_values[service]
                );
            } else {
                this._super(e);
            }
        },
        renderElement: function() {
            this._super();
            this.$(".kanban_group_buttons").removeClass("o_hidden");
        },
        render_backup_config_cards: function() {
            this._super();
            this.$(".backup_storage_service_title").removeClass("o_hidden");
        },
    });

    return Dashboard;<commit_msg>:rainbow: pre-commit: odoo_backup_sh_dropbox cleanup<commit_after>// Copyright 2019 <NAME> <https://it-projects.info/team/GabbasovDinar>
// License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).

odoo.define("odoo_backup_sh_dropbox.dashboard", function(require) {
    "use strict";

    var Dashboard = require("odoo_backup_sh.dashboard");

    Dashboard.include({
        click_group_buttons: function(e) {
            var $el = $(e.target);
            var service = $el.data("service");
            if ($el.data("service") === "dropbox") {
                this.set_active_button($el);
                this.set_service(service);
                this.render_remote_storage_usage_graph(
                    this.services_storage_usage_graph_values[service]
                );
            } else {
                this._super(e);
            }
        },
        renderElement: function() {
            this._super();
            this.$(".kanban_group_buttons").removeClass("o_hidden");
        },
        render_backup_config_cards: function() {
            this._super();
            this.$(".backup_storage_service_title").removeClass("o_hidden");
        },
    });

    return Dashboard;
{'fraction_non_alphanumeric': 0.13960909453530115, 'fraction_numerical': 0.004786597526924611, 'mean_word_length': 2.115527950310559, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7384897', 'n_tokens_mistral': 738, 'n_tokens_neox': 719, 'n_words': 104}