Skip to content

Commit

Permalink
Merge pull request #471 from SELab-2/admin-tree-fixes
Browse files Browse the repository at this point in the history
fix: Admin and Tree fixes
  • Loading branch information
bsilkyn authored May 24, 2024
2 parents 9d9fda6 + 518cb18 commit 4e0f50f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 2 additions & 0 deletions frontend/src/components/projects/ProjectStructureEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ function selectStructureCheck(node: TreeNode): void {
separator=","
:model-value="node.data.getObligatedExtensionList()"
@update:model-value="node.data.setObligatedExtensionList($event)"
@keydown.enter="(event: KeyboardEvent) => event.preventDefault()"
v-tooltip="t('views.projects.structureChecks.obligatedExtensions')"
>
<template #chip="{ value }">
Expand All @@ -127,6 +128,7 @@ function selectStructureCheck(node: TreeNode): void {
separator=","
:model-value="node.data.getBlockedExtensionList()"
@update:model-value="node.data.setBlockedExtensionList($event)"
@keydown.enter="(event: KeyboardEvent) => event.preventDefault()"
v-tooltip="t('views.projects.structureChecks.blockedExtensions')"
>
<template #chip="{ value }">
Expand Down
10 changes: 7 additions & 3 deletions frontend/src/views/admin/DockerImagesView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const onSelect = (selected: any[] | null): void => {
<Title>
<div class="gap-3 mb-3">{{ t('admin.dockerImages.title') }}</div>
</Title>
<Body class="w-full">
<Body>
<SelectButton
class="mb-3 gap-3 w-3"
v-model="selectedOption"
Expand Down Expand Up @@ -199,7 +199,11 @@ const onSelect = (selected: any[] | null): void => {
<InputText v-model="filter['search']" :placeholder="t('admin.search.general')" />
</IconField>
</div>
<Button class="w-1 mb-3 gap-3" :disabled="multiRemove" @click="toggleSafetyGuardMultiRemove">
<Button
class="w-auto mb-3 gap-3 justify-content-center"
:disabled="multiRemove"
@click="toggleSafetyGuardMultiRemove"
>
{{ t('admin.delete') }}
</Button>
</template>
Expand Down Expand Up @@ -238,7 +242,7 @@ const onSelect = (selected: any[] | null): void => {
</Column>
<Column key="remove" :header-style="{ width: '11%' }" class="p-col">
<template #body="{ data }">
<Button @click="() => toggleSafetyGuardRemove(data)" class="justify-content-center">
<Button @click="() => toggleSafetyGuardRemove(data)" class="justify-content-center w-auto">
{{ t('admin.delete') }}
</Button>
</template>
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/views/admin/UsersView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const saveItem = async (): Promise<void> => {
<Title>
{{ t('admin.users.title') }}
</Title>
<Body class="w-full">
<Body>
<LazyDataTable
:pagination="pagination"
:entities="users"
Expand Down Expand Up @@ -209,9 +209,9 @@ const saveItem = async (): Promise<void> => {
</Column>
<Column :header-style="{ width: '12%' }" class="p-col">
<template #body="{ data }">
<Button @click="() => showPopup(data)" class="justify-content-center">{{
t('admin.edit')
}}</Button>
<Button @click="() => showPopup(data)" class="justify-content-center w-auto">
{{ t('admin.edit') }}
</Button>
</template>
</Column>
</LazyDataTable>
Expand Down

0 comments on commit 4e0f50f

Please sign in to comment.