This commit is contained in:
2023-06-05 18:55:30 +10:00
parent 584e0903c8
commit 567ee3062b

View File

@@ -266,7 +266,6 @@ const computedAccepts = computed(() => {
/** /**
* Get the media item by id. * Get the media item by id.
*
* @param {string} item_id The media item id. * @param {string} item_id The media item id.
* @returns {Media | null} The media object or null. * @returns {Media | null} The media object or null.
*/ */
@@ -396,6 +395,7 @@ const handleClickInsert = async () => {
"An unexpected response was received from the server"; "An unexpected response was received from the server";
} }
} catch (error) { } catch (error) {
console.log(error);
if (error.status === 413) { if (error.status === 413) {
uploadForm._message = uploadForm._message =
"The selected file is larger than the maximum size limit"; "The selected file is larger than the maximum size limit";
@@ -415,12 +415,11 @@ const handleClickInsert = async () => {
} }
} }
closeDialog(false); // closeDialog(false);
}; };
/** /**
* Handle user clicking a media item (selecting). * Handle user clicking a media item (selecting).
*
* @param {string} item_id The media id. * @param {string} item_id The media id.
*/ */
const handleClickItem = (item_id: string): void => { const handleClickItem = (item_id: string): void => {
@@ -429,7 +428,6 @@ const handleClickItem = (item_id: string): void => {
/** /**
* Handle user double clicking a media item. * Handle user double clicking a media item.
*
* @param item_id The media id. * @param item_id The media id.
*/ */
const handleDblClickItem = (item_id: string): void => { const handleDblClickItem = (item_id: string): void => {
@@ -446,7 +444,6 @@ const listActive = ref("grid");
/** /**
* Handle Grid layout request click * Handle Grid layout request click
*
* @param name * @param name
*/ */
const handleClickLayout = (name: string) => { const handleClickLayout = (name: string) => {
@@ -541,7 +538,6 @@ const handleLoad = async () => {
/** /**
* Handle a keyboard event in this component. * Handle a keyboard event in this component.
*
* @param {KeyboardEvent} event The keyboard event. * @param {KeyboardEvent} event The keyboard event.
* @returns {boolean} If the event was handled. * @returns {boolean} If the event was handled.
*/ */