Skip to content

Commit

Permalink
feat(Enterprise/RBAC): Revamp RBAC page +
Browse files Browse the repository at this point in the history
refresh UI of the collapse component
  • Loading branch information
Skraye committed Mar 12, 2024
1 parent 6e763da commit 8018852
Show file tree
Hide file tree
Showing 5 changed files with 218 additions and 115 deletions.
57 changes: 52 additions & 5 deletions components/content/Collapse.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,66 @@
<template>
<details class="mb-4">
<summary v-if="title">{{ title }}</summary>
<div class="mb-4">
<div class="show-button" @click="toggleShow" >
<ChevronDown v-if="show" class="icon-2x" />
<ChevronRight v-else class="icon-2x"/>
<span v-if="title" class="title">{{ title }}</span>
</div>
</div>
<div v-if="show">
<slot />
</details>
</div>
</template>

<script>
import ChevronDown from "vue-material-design-icons/ChevronDown.vue"
import ChevronRight from "vue-material-design-icons/ChevronRight.vue"
export default {
components: {},
components: {
ChevronDown,
ChevronRight
},
props: {
title: {
type: String,
required: true
required: true,
default: "Details"
},
},
data() {
return {
show: false
}
},
methods: {
toggleShow() {
this.show = !this.show
}
}
}
</script>

<style lang="scss" scoped>
@import "../../assets/styles/variable";
.show-button {
cursor: pointer;
font-size: 1.30em;
color: var(--bs-white);
display: inline-block;
padding-right: 0.1em;
}
.show-button:hover {
color: $purple-36;
background-color: #252526;
border-radius: 4px;
}
.title {
margin-left: 0.25em;
}
</style>

Binary file added content/docs/05.enterprise/create_binding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8018852

Please sign in to comment.