Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Improved error handling when a room requires an access code but none was provided ([#3035])

### Fixed

- Buttons insufficiently disabled during loading actions ([#1811])

## [v4.14.2] - 2026-04-10

### Fixed
Expand Down Expand Up @@ -662,6 +666,7 @@ You can find the changelog for older versions there [here](https://github.com/TH
[#1795]: https://github.com/THM-Health/PILOS/pull/1795
[#1801]: https://github.com/THM-Health/PILOS/pull/1801
[#1802]: https://github.com/THM-Health/PILOS/pull/1802
[#1811]: https://github.com/THM-Health/PILOS/pull/1811
[#1824]: https://github.com/THM-Health/PILOS/issues/1824
[#1825]: https://github.com/THM-Health/PILOS/pull/1825
[#1827]: https://github.com/THM-Health/PILOS/issues/1827
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
severity="info"
icon="fa-solid fa-edit"
data-test="streaming-room-type-settings-edit-button"
:disabled="disabled"
@click="showModal"
/>

Expand Down
5 changes: 5 additions & 0 deletions resources/js/components/AdminStreamingRoomTypeTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
<div>
<AdminStreamingRoomTypeEditButton
:room-type="slotProps.data"
:disabled="isBusy"
@edited="emit('edited')"
/>
</div>
Expand Down Expand Up @@ -133,5 +134,9 @@ defineProps({
type: Array,
required: true,
},
isBusy: {
type: Boolean,
required: true,
},
});
</script>
30 changes: 20 additions & 10 deletions resources/js/components/AppBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,28 @@
<p class="m-0 whitespace-pre-wrap" data-test="banner-message">
{{ message }}
</p>
<a
v-if="link"
:href="link"
:target="`_${linkTarget}`"
data-test="banner-link-button"
>
<div>
<Button
v-if="link"
as="a"
data-test="banner-link-button"
:href="link"
:target="`_${linkTarget}`"
Comment thread
samuelwei marked this conversation as resolved.
:link="linkStyle === 'link'"
:style="linkStyle === 'link' ? { color: color } : {}"
:class="linkStyle === 'link' ? 'p-0 underline' : ''"
:style="buttonStyle"
:class="buttonClass"
:severity="linkStyle"
:label="linkText ? linkText : link"
/>
</a>
</div>
</div>
</Message>
</template>

<script setup>
defineProps({
import { computed } from "vue";

const props = defineProps({
background: {
type: String,
default: null,
Expand Down Expand Up @@ -93,6 +95,14 @@ defineProps({
default: null,
},
});

const buttonClass = computed(() => {
return props.linkStyle === "link" ? "p-0 underline" : "";
});

const buttonStyle = computed(() => {
return props.linkStyle === "link" ? { color: props.color } : {};
});
</script>
<style scoped>
.banner-message {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/RoomTabFilesViewButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:href="downloadUrl"
icon="fa-solid fa-eye"
data-test="room-files-view-button"
as="a"
:as="disabled ? 'button' : 'a'"
/>

<Popover ref="op" class="max-w-96" data-test="terms-of-use-required-info">
Expand Down
5 changes: 1 addition & 4 deletions resources/js/components/RoomTabRecordingsDownloadButton.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<Button
v-tooltip:top="$t('rooms.recordings.download')"
as="a"
:as="props.disabled ? 'button' : 'a'"
target="_blank"
:href="downloadUrl"
severity="help"
Expand Down Expand Up @@ -29,9 +29,6 @@ const props = defineProps({
});

const downloadUrl = computed(() => {
if (props.disabled) {
return null;
}
return (
settingsStore.getSetting("general.base_url") +
"/download/recording/" +
Expand Down
6 changes: 5 additions & 1 deletion resources/js/components/SettingsRolesDeleteButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Button
v-tooltip="$t('admin.roles.delete.item', { id: props.name })"
:aria-label="$t('admin.roles.delete.item', { id: props.name })"
:disabled="isBusy"
:disabled="isBusy || props.disabled"
severity="danger"
icon="fa-solid fa-trash"
data-test="roles-delete-button"
Expand Down Expand Up @@ -58,6 +58,10 @@ const props = defineProps({
type: String,
required: true,
},
disabled: {
type: Boolean,
default: false,
},
});

const emit = defineEmits(["deleted"]);
Expand Down
6 changes: 5 additions & 1 deletion resources/js/components/SettingsRoomTypesDeleteButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Button
v-tooltip="$t('admin.room_types.delete.item', { id: props.name })"
:aria-label="$t('admin.room_types.delete.item', { id: props.name })"
:disabled="isBusy"
:disabled="isBusy || props.disabled"
severity="danger"
icon="fa-solid fa-trash"
data-test="room-types-delete-button"
Expand Down Expand Up @@ -125,6 +125,10 @@ const props = defineProps({
type: String,
required: true,
},
disabled: {
type: Boolean,
default: false,
},
});

const emit = defineEmits(["deleted", "notFound"]);
Expand Down
6 changes: 5 additions & 1 deletion resources/js/components/SettingsServerPoolsDeleteButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Button
v-tooltip="$t('admin.server_pools.delete.item', { name: props.name })"
:aria-label="$t('admin.server_pools.delete.item', { name: props.name })"
:disabled="isBusy"
:disabled="isBusy || props.disabled"
icon="fa-solid fa-trash"
severity="danger"
data-test="server-pools-delete-button"
Expand Down Expand Up @@ -82,6 +82,10 @@ const props = defineProps({
type: String,
required: true,
},
disabled: {
type: Boolean,
default: false,
},
});

const emit = defineEmits(["deleted"]);
Expand Down
6 changes: 5 additions & 1 deletion resources/js/components/SettingsServersDeleteButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
v-tooltip="$t('admin.servers.delete.item', { name: props.name })"
severity="danger"
icon="fa-solid fa-trash"
:disabled="isBusy"
:disabled="isBusy || props.disabled"
:aria-label="$t('admin.servers.delete.item', { name: props.name })"
data-test="servers-delete-button"
@click="showModal()"
Expand Down Expand Up @@ -56,6 +56,10 @@ const props = defineProps({
type: String,
required: true,
},
disabled: {
type: Boolean,
default: false,
},
});

const emit = defineEmits(["deleted"]);
Expand Down
6 changes: 5 additions & 1 deletion resources/js/components/SettingsUsersDeleteButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
lastname: props.lastname,
})
"
:disabled="isBusy"
:disabled="isBusy || props.disabled"
severity="danger"
icon="fa-solid fa-trash"
data-test="users-delete-button"
Expand Down Expand Up @@ -76,6 +76,10 @@ const props = defineProps({
type: String,
required: true,
},
disabled: {
type: Boolean,
default: false,
},
});

const emit = defineEmits(["deleted"]);
Expand Down
6 changes: 5 additions & 1 deletion resources/js/components/SettingsUsersResetPasswordButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
lastname: props.lastname,
})
"
:disabled="isBusy"
:disabled="isBusy || props.disabled"
severity="warn"
icon="fa-solid fa-key"
data-test="users-reset-password-button"
Expand Down Expand Up @@ -86,6 +86,10 @@ const props = defineProps({
type: String,
required: true,
},
disabled: {
type: Boolean,
default: false,
},
});

const modalVisible = ref(false);
Expand Down
8 changes: 6 additions & 2 deletions resources/js/components/UserTabEmail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<script setup>
import env from "../env";
import { useAuthStore } from "../stores/auth";
import { computed, onBeforeMount, ref } from "vue";
import { computed, onBeforeMount, ref, watch } from "vue";
import { useApi } from "../composables/useApi.js";
import { useUserPermissions } from "../composables/useUserPermission.js";
import { useFormErrors } from "../composables/useFormErrors.js";
Expand All @@ -105,7 +105,7 @@ const props = defineProps({
},
});

const emit = defineEmits(["updateUser", "notFoundError"]);
const emit = defineEmits(["updateUser", "notFoundError", "busy"]);

const api = useApi();
const userPermissions = useUserPermissions();
Expand All @@ -128,6 +128,10 @@ onBeforeMount(() => {
validationRequiredEmail.value = null;
});

watch(isBusy, () => {
emit("busy", isBusy.value);
});

function save(event) {
if (event) {
event.preventDefault();
Expand Down
6 changes: 5 additions & 1 deletion resources/js/components/UserTabOtherSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const props = defineProps({
},
});

const emit = defineEmits(["updateUser", "notFoundError", "staleError"]);
const emit = defineEmits(["updateUser", "notFoundError", "staleError", "busy"]);

const model = ref(null);
const isBusy = ref(false);
Expand All @@ -74,6 +74,10 @@ watch(
{ deep: true },
);

watch(isBusy, () => {
emit("busy", isBusy.value);
});

onBeforeMount(() => {
model.value = _.cloneDeep(props.user);
});
Expand Down
6 changes: 5 additions & 1 deletion resources/js/components/UserTabProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const props = defineProps({
},
});

const emit = defineEmits(["updateUser", "notFoundError", "staleError"]);
const emit = defineEmits(["updateUser", "notFoundError", "staleError", "busy"]);

const isBusy = ref(false);
const model = ref({});
Expand All @@ -208,6 +208,10 @@ watch(
{ deep: true },
);

watch(isBusy, () => {
emit("busy", isBusy.value);
});

onBeforeMount(() => {
model.value = _.cloneDeep(props.user);
});
Expand Down
Loading
Loading