Skip to content

Commit

Permalink
Add lock status viewer and button
Browse files Browse the repository at this point in the history
See also: #13
  • Loading branch information
BECATRUE committed Dec 7, 2024
1 parent 0677d7a commit f4711a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wlm-ui/src/MainPage/Channel/Channel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
justify-content: space-between;
}

.channel-lock-container {
display: flex;
flex-direction: row;
justify-content: space-between;
gap: 10px;
}

.channel-attr-viewer-container {
display: flex;
flex-direction: row;
Expand Down
4 changes: 4 additions & 0 deletions wlm-ui/src/MainPage/Channel/Channel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ const Channel = (props: IProps) => {
)}
</h1>
</div>
<div className='channel-lock-container'>
<span>{props.lock.locked ? `Locked by ${props.lock.owner}` : 'Open'}</span>
<button>{props.hasLock ? 'Release' : 'Acquire'}</button>
</div>
<div className='channel-attr-viewer-container'>
<b>Exp. time</b>
<span style={{ width: '60px', textAlign: 'right' }}>
Expand Down

0 comments on commit f4711a9

Please sign in to comment.