mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2025-12-21 13:11:52 +00:00
Use central defintion of storage system
Change-Id: Ibf31c650b08920bf82827607c3421556ac90ae61
This commit is contained in:
parent
035baa786a
commit
dbcb4f92dc
9 changed files with 66 additions and 53 deletions
|
|
@ -34,6 +34,7 @@ import { Link } from "react-router-dom";
|
|||
import { dateParser } from "./date";
|
||||
import { DeleteMediaParams, SynapseDataProvider } from "../synapse/dataProvider";
|
||||
import { getMediaUrl } from "../synapse/synapse";
|
||||
import storage from "../storage";
|
||||
|
||||
const DeleteMediaDialog = ({ open, onClose, onSubmit }) => {
|
||||
const translate = useTranslate();
|
||||
|
|
@ -339,7 +340,7 @@ export const ViewMediaButton = ({ media_id, label }) => {
|
|||
};
|
||||
|
||||
export const MediaIDField = ({ source }) => {
|
||||
const homeserver = localStorage.getItem("home_server");
|
||||
const homeserver = storage.getItem("home_server");
|
||||
const record = useRecordContext();
|
||||
if (!record) return null;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue