All Downloads are FREE. Search and download functionalities are using the official Maven repository.

theme.keycloak.v2.admin.resources.assets.DeleteScopeDialog-f3f4eaec.js Maven / Gradle / Ivy

There is a newer version: 25.0.1
Show newest version
import{u as m,d as p,j as i,g as u,A as d,a4 as f}from"./index-f33eb656.js";import{C as g}from"./ConfirmDialog-cc2aa7b4.js";const j=({clientId:e,selectedScope:s,refresh:t,open:a,toggleDialog:o})=>{const{t:n}=m("clients"),{addAlert:l,addError:c}=p();return i.jsxs(g,{open:a,toggleDialog:o,titleKey:"clients:deleteScope",continueButtonLabel:"clients:confirm",onConfirm:async()=>{try{await u.clients.delAuthorizationScope({id:e,scopeId:s?.id}),l(n("resourceScopeSuccess"),d.success),t()}catch(r){c("clients:resourceScopeError",r)}},children:[n("deleteScopeConfirm"),s&&"permissions"in s&&s.permissions&&s.permissions.length>0&&i.jsx(f,{variant:"warning",isInline:!0,isPlain:!0,title:n("deleteScopeWarning"),className:"pf-u-pt-lg",children:i.jsx("p",{className:"pf-u-pt-xs",children:s.permissions.map(r=>i.jsx("strong",{className:"pf-u-pr-md",children:r.name},r.id))})})]})};export{j as D};
//# sourceMappingURL=DeleteScopeDialog-f3f4eaec.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy