Skip to content

Commit

Permalink
Changed: Result acceptance in user input as circle
Browse files Browse the repository at this point in the history
  • Loading branch information
djuarezgf committed Jan 7, 2025
1 parent 3ab45b9 commit f46e073
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Rename reject project bridgehead user state as block
- Copy query to clipboard always active, as long as it has a value
- Alignment of user in navbar
- Result acceptance in user input as circle
30 changes: 28 additions & 2 deletions src/components/UserInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default class UserInput extends Vue {
<tr>
<th>User</th>
<th v-if="bridgeheads.length > 0">Bridgehead</th>
<th>State</th> <!-- New column for user state -->
<th>Results Acceptance</th> <!-- New column for user state -->
</tr>
</thead>
<tbody>
Expand All @@ -193,7 +193,8 @@ export default class UserInput extends Vue {
</template>
</td>
<td v-if="bridgeheads.length > 0">{{ user.humanReadableBridgehead }}</td>
<td>{{ user.projectState }}</td> <!-- Display user's state in the second column -->
<!-- Display user's state in the second column -->
<td><div class="states-circle-container"><div class="state_circle" :class="user?.projectState.toLowerCase()"/></div></td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -280,4 +281,29 @@ export default class UserInput extends Vue {
font-weight: bold;
font-size: 9pt;
}
.states-circle-container {
display: flex;
justify-content: center;
}
.state_circle {
border-radius: 50%;
width: 20px;
height: 20px;
}
.state_circle.created {
border: 1px solid #cccccc;
background-color: #f2f2f2;
}
.state_circle.request_changes {
border: 1px solid #cccccc;
background-color: #fff200;
}
.state_circle.accepted {
border: 1px solid #cccccc;
background-color: #009a00;
}
.state_circle.rejected{
border: 1px solid #cccccc;
background-color: red;
}
</style>

0 comments on commit f46e073

Please sign in to comment.