style: Prettier JS styling

This commit is contained in:
Gavin D'souza 2021-02-27 11:41:18 +05:30
parent 6b104e2bf1
commit c577297b6f

View file

@ -1,13 +1,16 @@
// Copyright (c) 2019, Frappe Technologies and contributors
// For license information, please see license.txt
frappe.ui.form.on('Personal Data Deletion Request', {
frappe.ui.form.on("Personal Data Deletion Request", {
refresh: function(frm) {
if(frappe.user.has_role('System Manager') && frm.doc.status == 'Pending Approval'){
frm.add_custom_button(__('Delete Data'), function() {
if (
frappe.user.has_role("System Manager") &&
frm.doc.status == "Pending Approval"
) {
frm.add_custom_button(__("Delete Data"), function() {
return frappe.call({
doc: frm.doc,
method: 'trigger_data_deletion',
method: "trigger_data_deletion",
freeze: true,
callback: function() {
frm.refresh();