svg fix
This commit is contained in:
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"main.js": {
|
"main.js": {
|
||||||
"file": "assets/main.f9100565.js",
|
"file": "assets/main.1ef17975.js",
|
||||||
"src": "main.js",
|
"src": "main.js",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"css": [
|
"css": [
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
import {getContext} from "svelte";
|
import {getContext} from "svelte";
|
||||||
|
|
||||||
export function imgurl(record) {
|
export function imgurl(record) {
|
||||||
|
|
||||||
|
if(record._file.mime === "image/svg+xml"){
|
||||||
|
return fileurl(record);
|
||||||
|
}
|
||||||
const channel = getContext("channel")
|
const channel = getContext("channel")
|
||||||
return channel.filesUrl + `/thumbs/${record._file.path}`;
|
return channel.filesUrl + `/thumbs/${record._file.path}`;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,4 +10,5 @@ return [
|
|||||||
"imageFilters" => [],
|
"imageFilters" => [],
|
||||||
"canInvite" => ["admin"],
|
"canInvite" => ["admin"],
|
||||||
"canBuild" => ["admin"],
|
"canBuild" => ["admin"],
|
||||||
|
"systemUserId" => "",
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -172,6 +172,7 @@ class RecordController extends Controller
|
|||||||
"record" => $queryRecord,
|
"record" => $queryRecord,
|
||||||
"recordHistory" => $recordHistory,
|
"recordHistory" => $recordHistory,
|
||||||
"isCreateMode" => true,
|
"isCreateMode" => true,
|
||||||
|
"isWritable" => in_array($record->schema,$this->accountService->currentWritableSchemas())
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user