Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CloWM UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computational Metagenomics
CloWM
CloWM UI
Merge requests
!18
Resolve "Bucket Detail Modal"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Bucket Detail Modal"
feature/23-bucket-detail-modal
into
development
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Daniel Göbel
requested to merge
feature/23-bucket-detail-modal
into
development
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
Closes
#23 (closed)
0
0
Merge request reports
Viewing commit
c7770aa7
Show latest version
3 files
+
106
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
Verified
c7770aa7
Add modal to view bucket details
· c7770aa7
Daniel Göbel
authored
2 years ago
#23
src/components/Modals/BucketDetailModal.vue
0 → 100644
+
70
−
0
Options
<
script
setup
lang=
"ts"
>
import
BootstrapModal
from
"
@/components/Modals/BootstrapModal.vue
"
;
import
type
{
BucketOut
}
from
"
@/client
"
;
import
dayjs
from
"
dayjs
"
;
import
{
filesize
}
from
"
filesize
"
;
const
props
=
defineProps
<
{
modalID
:
string
;
bucket
:
BucketOut
;
}
>
();
</
script
>
<
template
>
<bootstrap-modal
:modalID=
"modalID"
:static-backdrop=
"false"
modal-label=
"Bucket Detail Modal"
>
<template
v-slot:header
>
<h4>
Bucket Details
<i>
{{
props
.
bucket
.
name
}}
</i>
</h4>
</
template
>
<
template
v-slot:body
>
<div
class=
"container-fluid"
>
<table
class=
"table table-hover table-sm table-borderless"
>
<tbody>
<tr>
<th
scope=
"row"
class=
"col-2"
>
Name
</th>
<td
class=
"col-10"
>
{{
props
.
bucket
.
name
}}
</td>
</tr>
<tr>
<th
scope=
"row"
>
Creation date
</th>
<td>
{{
dayjs
(
props
.
bucket
.
created_at
).
format
(
"
YYYY-MM-DD HH:mm:ss
"
)
}}
</td>
</tr>
<tr>
<th
scope=
"row"
>
Number of Objects
</th>
<td>
{{
props
.
bucket
.
num_objects
}}
</td>
</tr>
<tr>
<th
scope=
"row"
>
Size
</th>
<td>
{{
filesize
(
props
.
bucket
.
size
)
}}
</td>
</tr>
<tr>
<th
scope=
"row"
>
Description
</th>
<td>
{{
props
.
bucket
.
description
}}
</td>
</tr>
</tbody>
</table>
</div>
</
template
>
<
template
v-slot:footer
>
<button
type=
"button"
class=
"btn btn-secondary"
data-bs-dismiss=
"modal"
>
Close
</button>
</
template
>
</bootstrap-modal>
</template>
<
style
scoped
>
th
{
font-weight
:
bold
;
text-align
:
end
;
}
</
style
>
Loading