summaryrefslogtreecommitdiff
path: root/web/js/views
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/views')
-rw-r--r--web/js/views/media-actions.js2
-rw-r--r--web/js/views/media-grid.js3
-rw-r--r--web/js/views/media-info.js3
-rw-r--r--web/js/views/sets.js2
-rw-r--r--web/js/views/shares.js3
-rw-r--r--web/js/views/tags.js2
-rw-r--r--web/js/views/upload.js2
7 files changed, 10 insertions, 7 deletions
diff --git a/web/js/views/media-actions.js b/web/js/views/media-actions.js
index 7dab090..2367241 100644
--- a/web/js/views/media-actions.js
+++ b/web/js/views/media-actions.js
@@ -2,7 +2,7 @@ import { API } from '../api.js';
import { currentElement } from '../selection.js';
import { currentMediaId } from '../player.js';
import { open as openNotes } from '../notes.js';
-import { toast } from '../dom.js';
+import { toast } from '../utils.js';
export async function shareSelected() {
const el = currentElement();
diff --git a/web/js/views/media-grid.js b/web/js/views/media-grid.js
index f773f37..5c16de0 100644
--- a/web/js/views/media-grid.js
+++ b/web/js/views/media-grid.js
@@ -1,7 +1,8 @@
import { API } from '../api.js';
import { state, setMedia } from '../state.js';
import { clearSelection, selectByElement } from '../selection.js';
-import { escapeHtml, fmtDur, fmtSize, toast } from '../dom.js';
+import { fmtSize } from '../dom.js';
+import { escapeHtml, fmtDur, toast } from '../utils.js';
let callbacks = {};
diff --git a/web/js/views/media-info.js b/web/js/views/media-info.js
index 06d88ad..51e576c 100644
--- a/web/js/views/media-info.js
+++ b/web/js/views/media-info.js
@@ -1,5 +1,6 @@
import { API } from '../api.js';
-import { escapeHtml, fmtDateTime, fmtDur, fmtSize, toast } from '../dom.js';
+import { fmtDateTime, fmtSize } from '../dom.js';
+import { escapeHtml, fmtDur, toast } from '../utils.js';
import { selectedMediaId } from './media-actions.js';
export function initMediaInfo() {
diff --git a/web/js/views/sets.js b/web/js/views/sets.js
index 9bb6db3..6badcb3 100644
--- a/web/js/views/sets.js
+++ b/web/js/views/sets.js
@@ -1,6 +1,6 @@
import { API } from '../api.js';
import { state } from '../state.js';
-import { escapeHtml, toast } from '../dom.js';
+import { escapeHtml, toast } from '../utils.js';
let loadMediaCallback = () => {};
diff --git a/web/js/views/shares.js b/web/js/views/shares.js
index 12f717c..3cbf6b5 100644
--- a/web/js/views/shares.js
+++ b/web/js/views/shares.js
@@ -1,6 +1,7 @@
import { API } from '../api.js';
import { state } from '../state.js';
-import { escapeHtml, fmtDate, toast } from '../dom.js';
+import { fmtDate } from '../dom.js';
+import { escapeHtml, toast } from '../utils.js';
export function initShares() {
const modal = document.getElementById('shares-modal');
diff --git a/web/js/views/tags.js b/web/js/views/tags.js
index 21186bf..7d3ceba 100644
--- a/web/js/views/tags.js
+++ b/web/js/views/tags.js
@@ -1,6 +1,6 @@
import { API } from '../api.js';
import { currentElement } from '../selection.js';
-import { escapeHtml, toast } from '../dom.js';
+import { escapeHtml, toast } from '../utils.js';
let tagsCurrentMediaId = null;
diff --git a/web/js/views/upload.js b/web/js/views/upload.js
index 19ceb87..de88ba5 100644
--- a/web/js/views/upload.js
+++ b/web/js/views/upload.js
@@ -1,6 +1,6 @@
import { API } from '../api.js';
import { state } from '../state.js';
-import { toast } from '../dom.js';
+import { toast } from '../utils.js';
let loadMediaCallback = () => {};