stubbed copy dialog

This commit is contained in:
Danny Coates 2018-10-25 18:55:11 -07:00
parent d881755814
commit 7ad63ae004
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
6 changed files with 1946 additions and 8 deletions

View file

@ -6,6 +6,7 @@ import * as metrics from './metrics';
import Archive from './archive';
import { bytes } from './utils';
import okDialog from './ui/okDialog';
import copyDialog from './ui/copyDialog';
export default function(state, emitter) {
let lastRender = 0;
@ -156,6 +157,7 @@ export default function(state, emitter) {
if (password) {
emitter.emit('password', { password, file: ownedFile });
}
state.modal = copyDialog(ownedFile.url);
state.animation = () => {
const x = document.querySelector('.foo');
const y = x.previousElementSibling;