style: fix sider
This commit is contained in:
parent
169f5f3ef2
commit
83dcc8a583
5 changed files with 7 additions and 10 deletions
|
|
@ -4,7 +4,7 @@
|
|||
frappe.ui.form.on('Connected App', {
|
||||
refresh: frm => {
|
||||
frm.add_custom_button(__("Get OpenID Configuration"), async () => {
|
||||
if(!frm.doc.openid_configuration) {
|
||||
if (!frm.doc.openid_configuration) {
|
||||
frappe.msgprint(__('Please enter OpenID Configuration URL'));
|
||||
} else {
|
||||
try {
|
||||
|
|
@ -15,7 +15,7 @@ frappe.ui.form.on('Connected App', {
|
|||
frm.set_value('userinfo_endpoint', oidc.userinfo_endpoint);
|
||||
frm.set_value('introspection_endpoint', oidc.introspection_endpoint);
|
||||
frm.set_value('revocation_endpoint', oidc.revocation_endpoint);
|
||||
} catch(error) {
|
||||
} catch (error) {
|
||||
frappe.msgprint(__('Please check OpenID Configuration URL'));
|
||||
}
|
||||
}
|
||||
|
|
@ -28,7 +28,7 @@ frappe.ui.form.on('Connected App', {
|
|||
callback: function(r) {
|
||||
window.open(r.message, '_blank');
|
||||
}
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -3,15 +3,12 @@
|
|||
# For license information, please see license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import json
|
||||
import requests
|
||||
import frappe
|
||||
import base64
|
||||
from frappe import _
|
||||
from frappe.model.document import Document
|
||||
from datetime import datetime, timedelta
|
||||
from urllib.parse import urlencode
|
||||
from six.moves.urllib.parse import unquote
|
||||
from requests_oauthlib import OAuth2Session
|
||||
|
||||
if frappe.conf.developer_mode:
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
# See license.txt
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import frappe
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
class TestConnectedApp(unittest.TestCase):
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
# See license.txt
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import frappe
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
class TestTokenCache(unittest.TestCase):
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('Token Cache', {
|
||||
refresh: function(frm) {
|
||||
// refresh: function(frm) {
|
||||
|
||||
}
|
||||
// }
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue