add getConfigurationResourceUrl

This commit is contained in:
grafixeyehero 2021-06-14 02:21:15 +03:00
parent b7c6a8aa18
commit ac1de0de93

View file

@ -94,6 +94,12 @@ export function getPluginUrl(name) {
return 'configurationpage?name=' + encodeURIComponent(name); return 'configurationpage?name=' + encodeURIComponent(name);
} }
export function getConfigurationResourceUrl(name) {
return ApiClient.getUrl('web/ConfigurationPage', {
name: name
});
}
export function navigate(url, preserveQueryString) { export function navigate(url, preserveQueryString) {
if (!url) { if (!url) {
throw new Error('url cannot be null or empty'); throw new Error('url cannot be null or empty');
@ -204,6 +210,7 @@ const Dashboard = {
capabilities, capabilities,
confirm, confirm,
getPluginUrl, getPluginUrl,
getConfigurationResourceUrl,
getCurrentUser, getCurrentUser,
getCurrentUserId, getCurrentUserId,
hideLoadingMsg, hideLoadingMsg,