fix(minor): frappe.toast alist from frappe.show_alert, and added toasts to website.js, plus show full processlist
This commit is contained in:
parent
c280671a7a
commit
22f143898b
3 changed files with 4 additions and 3 deletions
|
|
@ -38,4 +38,4 @@ def execute_code(doc):
|
|||
@frappe.whitelist()
|
||||
def show_processlist():
|
||||
frappe.only_for('System Manager')
|
||||
return frappe.db.sql('show processlist', as_dict=1)
|
||||
return frappe.db.sql('show full processlist', as_dict=1)
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ frappe.msgprint = function(msg, title, is_minimizable) {
|
|||
return;
|
||||
}
|
||||
|
||||
if(data.alert) {
|
||||
if(data.alert || data.toast) {
|
||||
frappe.show_alert(data);
|
||||
return;
|
||||
}
|
||||
|
|
@ -361,7 +361,7 @@ frappe.hide_progress = function() {
|
|||
}
|
||||
|
||||
// Floating Message
|
||||
frappe.show_alert = function(message, seconds=7, actions={}) {
|
||||
frappe.show_alert = frappe.toast = function(message, seconds=7, actions={}) {
|
||||
let indicator_icon_map = {
|
||||
'orange': "solid-warning",
|
||||
'yellow': "solid-warning",
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
@import "../common/flex";
|
||||
@import "../common/buttons";
|
||||
@import "../common/modal";
|
||||
@import "../desk/toast";
|
||||
@import "../common/indicator";
|
||||
@import "../common/controls";
|
||||
@import "../common/awesomeplete";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue