File tree Expand file tree Collapse file tree
tests/components/Setting/__snapshots__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change 104104 </template >
105105 </v-card-item >
106106 <v-divider />
107+ <v-card-item
108+ style =" grid-template-columns : max-content 1.5fr 2fr "
109+ data-test =" type-details-item"
110+ >
111+ <template #prepend >
112+ <v-icon data-test =" type-icon" >
113+ mdi-shape-outline
114+ </v-icon >
115+ </template >
116+ <template #title >
117+ <span
118+ class =" text-subtitle-1"
119+ data-test =" type-title"
120+ >Type</span >
121+ </template >
122+ <template #append >
123+ <v-chip
124+ class =" ml-1 text-capitalize"
125+ data-test =" type-chip"
126+ >
127+ <v-icon
128+ size =" small"
129+ class =" mr-1"
130+ :icon =" namespaceTypeIcon"
131+ />
132+ {{ namespace.type || "team" }}
133+ </v-chip >
134+ </template >
135+ </v-card-item >
136+ <v-divider />
107137 <v-card-item
108138 style =" grid-template-columns : max-content 1.5fr 2fr "
109139 data-test =" tenant-details-item"
@@ -381,6 +411,8 @@ const updateName = async () => {
381411
382412const canRenameNamespace = hasPermission (" namespace:rename" );
383413
414+ const namespaceTypeIcon = computed (() => namespace .value .type === " personal" ? " mdi-account" : " mdi-account-group" );
415+
384416onMounted (async () => {
385417 if (tenantId ) await getNamespace ();
386418});
Original file line number Diff line number Diff line change @@ -103,6 +103,22 @@ exports[`Setting Namespace > Renders the component 1`] = `
103103 </div >
104104 </div >
105105 <hr data-v-80a16399 = " " class = " v-divider v-theme--light" style = " border-style: solid;" aria-orientation = " horizontal" role = " separator" >
106+ <div data-v-80a16399 = " " class = " v-card-item" style = " grid-template-columns: max-content 1.5fr 2fr;" data-test = " type-details-item" >
107+ <div class = " v-card-item__prepend" ><i data-v-80a16399 = " " class = " mdi-shape-outline mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden = " true" data-test = " type-icon" ></i ></div >
108+ <div class = " v-card-item__content" >
109+ <div class = " v-card-title" ><span data-v-80a16399 = " " class = " text-subtitle-1" data-test = " type-title" >Type</span ></div >
110+ <!---->
111+ <!---->
112+ </div >
113+ <div class = " v-card-item__append" ><span data-v-80a16399 = " " class = " v-chip v-theme--light v-chip--density-default v-chip--size-default v-chip--variant-tonal ml-1 text-capitalize" draggable = " false" data-test = " type-chip" ><!----><span class = " v-chip__underlay" ></span >
114+ <!---->
115+ <!---->
116+ <div class = " v-chip__content" data-no-activator = " " ><i data-v-80a16399 = " " class = " mdi-account-group mdi v-icon notranslate v-theme--light v-icon--size-small mr-1" aria-hidden = " true" ></i > team</div >
117+ <!---->
118+ <!----></span >
119+ </div >
120+ </div >
121+ <hr data-v-80a16399 = " " class = " v-divider v-theme--light" style = " border-style: solid;" aria-orientation = " horizontal" role = " separator" >
106122 <div data-v-80a16399 = " " class = " v-card-item" style = " grid-template-columns: max-content 1.5fr 2fr;" data-test = " tenant-details-item" >
107123 <div class = " v-card-item__prepend" ><i data-v-80a16399 = " " class = " mdi-identifier mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden = " true" data-test = " tenant-icon" ></i ></div >
108124 <div class = " v-card-item__content" >
@@ -185,7 +201,7 @@ exports[`Setting Namespace > Renders the component 1`] = `
185201 <!---->
186202 <!---->
187203 </div >
188- <div class = " v-selection-control__input" ><input checked = " " id = " switch-v-8 " aria-disabled = " false" type = " checkbox" value = " true" >
204+ <div class = " v-selection-control__input" ><input checked = " " id = " switch-v-10 " aria-disabled = " false" type = " checkbox" value = " true" >
189205 <div class = " v-switch__thumb" >
190206 <transition-stub name = " scale-transition" appear = " false" persisted = " false" css = " true" >
191207 <!---->
You can’t perform that action at this time.
0 commit comments