Skip to content

Commit

Permalink
updated ui, updated new invoices path
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Dec 20, 2023
1 parent c83a4a0 commit 834f09c
Show file tree
Hide file tree
Showing 40 changed files with 1,214 additions and 445 deletions.
324 changes: 228 additions & 96 deletions app/assets/builds/application.css

Large diffs are not rendered by default.

38 changes: 37 additions & 1 deletion app/assets/builds/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -7538,6 +7538,12 @@
}
};

// ../../node_modules/@rails/request.js/src/verbs.js
async function get(url, options) {
const request = new FetchRequest2("get", url, options);
return request.perform();
}

// controllers/form/checkbox_autosubmit_controller.js
var checkbox_autosubmit_controller_default = class extends Controller {
static targets = ["checkbox"];
Expand Down Expand Up @@ -7618,11 +7624,18 @@

// controllers/table/tab_controller.js
var tab_controller_default = class extends Controller {
static targets = ["tab", "content"];
static targets = ["tab", "content", "payablebtn"];
static classes = ["active"];
initialize() {
this.showTab = this.showTab.bind(this);
}
connect() {
console.log(this.payablebtnTargets);
if (this.payablebtnTargets.length > 0) {
this.payablebtnTargets[0].style.display = "block";
this.payablebtnTargets[1].style.display = "none";
}
}
showTab(event2) {
const index = event2.params.index;
this.tabTargets.forEach((tab) => {
Expand All @@ -7633,6 +7646,18 @@
});
this.tabTargets[index].classList.add(this.activeClass);
this.contentTargets[index].classList.add(this.activeClass);
if (this.payablebtnTargets.length > 0) {
if (index == 0) {
this.payablebtnTargets[0].style.display = "block";
this.payablebtnTargets[1].style.display = "none";
} else if (index == 1) {
this.payablebtnTargets[1].style.display = "block";
this.payablebtnTargets[0].style.display = "none";
} else {
this.payablebtnTargets[0].style.display = "none";
this.payablebtnTargets[1].style.display = "none";
}
}
}
};

Expand Down Expand Up @@ -8628,6 +8653,16 @@
}
};

// controllers/daily_summary_controller.js
var daily_summary_controller_default = class extends Controller {
updateDailtSummary(_event) {
clearTimeout(this.timeout);
this.timeout = setTimeout(() => {
get("/profile/toggle_subscription");
}, 500);
}
};

// controllers/index.js
application.register("modals--offer-modal", offer_modal_controller_default);
application.register("modals--modal", modal_controller_default);
Expand All @@ -8651,6 +8686,7 @@
application.register("cookie-consent", cookie_consent_controller_default);
application.register("google-analytics", google_analytics_controller_default);
application.register("auction-timezone", auction_timezone_controller_default);
application.register("daily-summary", daily_summary_controller_default);
})();
/*! Bundled license information:
Expand Down
Loading

0 comments on commit 834f09c

Please sign in to comment.