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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy