who cares

This commit is contained in:
2022-01-21 15:22:28 +01:00
parent 6bf27c0460
commit 9beb3b1723
2 changed files with 7 additions and 1 deletions
@@ -5,6 +5,7 @@
</template>
<template v-slot:footer>
<ui-button type="light onbg" label="@ui.close" @click="config.close"></ui-button>
<ui-button type="light onbg" label="@ui.remove" @click="remove()"></ui-button>
</template>
<ui-search class="ui-iconpicker-overlay-search onbg" v-model="query" />
@@ -134,6 +135,11 @@
{
this.items = this.set.icons.filter(item => item.toLowerCase().indexOf(query) > -1);
}
},
remove()
{
this.config.confirm(null);
}
}
}
+1 -1
View File
@@ -26,7 +26,7 @@ internal class ZeroMediaModule : ZeroModule
services.AddOptions<MediaOptions>().Bind(configuration.GetSection("Zero:Media")).Configure(opts =>
{
opts.FolderPath = "uploads";
opts.AllowedOtherFileExtensions = new() { ".pdf" };
opts.AllowedOtherFileExtensions = new() { ".pdf", ".docx", ".doc" };
opts.AllowedImageFileExtensions = new() { ".jpg", ".jpeg", ".png", ".bmp", ".webp", ".gif" };
opts.Thumbnails = new()
{